Path: utzoo!telly!philmtl!uunet!mcsun!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: gnu.bash.bug Subject: Re: [idallen@watcgl: bash aliases not transitive?!] Message-ID: <3063@solo10.cs.vu.nl> Date: 24 Aug 89 17:57:12 GMT Article-I.D.: solo10.3063 References: <3046@solo1.cs.vu.nl> <8908232318.AA03066@aurel.caltech.edu> Distribution: gnu Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 24 bfox@AUREL.CALTECH.EDU (Brian Fox) writes: \... \This is a very interesting discussion. It seems to me that people \really only want one thing: the left-hand side of an alias expansion \should be alias expanded. Indeed! That's the way csh does it. Example (csh): alias a alias a b 'cd $b' a cd 'set tmp=$cwd; chdir \!*; echo $cwd; set b=$tmp' The `cd' in the expansion from `b' will be expanded (upon invokation). Otherwise I would have to say: a b 'set tmp=$cwd; chdir $b; echo $cwd; set b=$tmp' a cd 'set tmp=$cwd; chdir \!*; echo $cwd; set b=$tmp' Not nice. -- "curl H - dD/dt = J, div D = rho, div B = 0,|Maarten Litmaath @ VU Amsterdam: curl E + dB/dt = 0" and there was light. |maart@cs.vu.nl, mcvax!botter!maart