bash documentation
Lawrence V. Cipriani
lvc at cbnews.att.com
Fri Feb 22 12:27:13 AEST 1991
In article <6463 at mentor.cc.purdue.edu> asg at sage.cc.purdue.edu (The Grand Master) writes:
>Tilde expansion:
>
>This shell does tilde expansion:
>
>~ = $HOME
>~/foo = $HOME/foo
>~fred/foo = (fred's home directory)/foo
>~+/foo = $PWD/foo
>~-/foo = $OLDPWD/foo
Is ~ expansion done at read time or execute time? Doing it at read time
can lead to suprising results when ~ expansion is present in aliases.
--
You've got some great ideas in there; I forwarded a copy to Dave Korn.
--
Larry Cipriani, att!cbvox!lvc or lvc at cbvox.att.com
"Fight fire with fire, I always say" -- Bugs Bunny
More information about the Comp.unix.shell
mailing list