🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #503

Re: [idallen@watcgl: bash aliases not transitive?!]

#503
From: Maarten Litmaath
Date: Thu, 24 Aug 1989 17:57
24 lines
1274 bytes
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
Technical Details
Message-ID: <3063@solo10.cs.vu.nl>
Path: arc1-ca.pugleaf.net!utzoo!telly!philmtl!uunet!mcsun!hp4nl!botter!star.cs.vu.nl!maart
References: <3046@solo1.cs.vu.nl> <8908232318.AA03066@aurel.caltech.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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