Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!spool.mu.edu!uwm.edu!linac!att!cbnews!lvc From: lvc@cbnews.att.com (Lawrence V. Cipriani) Newsgroups: comp.unix.shell Subject: Re: bash documentation Keywords: bash Message-ID: <1991Feb22.012713.24134@cbnews.att.com> Date: 22 Feb 91 01:27:13 GMT References: <1991Feb20.203710.21944@progress.com> <6463@mentor.cc.purdue.edu> Organization: Ideology Busters, Inc. Lines: 18 In article <6463@mentor.cc.purdue.edu> asg@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@cbvox.att.com "Fight fire with fire, I always say" -- Bugs Bunny Brought to you by Super Global Mega Corp .com