Initial import of the ircii-pana-1.1-final source tree.

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2008-02-25 09:25:32 +00:00
commit 28febcfea9
1429 changed files with 250653 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
Synopsis:
$twiddle(<tilde-expansion>)
Technical:
This function is used to do tilde-expansion on the given name. The tilde
is required. If a user exists on the system with a home directory, the
full path of that directory is returned. If the user does not exist,
nothing is returned. If a tilde is not the first character, the input is
returned.
Practical:
This is useful for ensuring that files will be written to your home
directory, regardless of the current directory.
Returns:
full path of home directory if user exists, nothing if not, input if error
Examples:
$twiddle(~) returns your home directory
$twiddle(~jvs) returns home directory for user jvs
$twiddle(~nosuchuser) no such user, returns nothing
$twiddle(blah) bad input, returns "blah"
See Also:
Environment(7); cd(4)