From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from math.gatech.edu (euclid.skiles.gatech.edu [130.207.146.50]) by werple.net.au (8.7/8.7.1) with SMTP id WAA02261 for ; Thu, 9 Nov 1995 22:38:01 +1100 (EST) Received: by math.gatech.edu (5.x/SMI-SVR4) id AA01000; Thu, 9 Nov 1995 06:14:23 -0500 Resent-Date: Thu, 9 Nov 1995 12:13:57 +0100 (MET) Old-Return-Path: From: Zoltan Hidvegi Message-Id: <199511091114.MAA24855@bolyai.cs.elte.hu> Subject: Re: Rationalized? aliases To: mdb@cdc.noaa.gov (Mark Borges) Date: Thu, 9 Nov 1995 12:13:57 +0100 (MET) In-Reply-To: <9511090052.AA17663@charney.cdc.noaa.gov> from "Mark Borges" at Nov 8, 95 05:52:22 pm X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: hzoli@cs.elte.hu Resent-Message-Id: <"SBCoB1.0.VF.EAUem"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/584 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Mark Borges wrote: > An interesting idea, but it doesn't seem to do the same thing on my > system: > > $ e="gnuclient -q" > $ echo $=e > gnuclient -q > $ alias e="$=e -h $HOMESYSTEM" > $ type e > e is an alias for gnuclient > $ alias e="gnuclient -h $HOMESYSTEM" > $ type e > e is an alias for 'gnuclient -h foo' > $ > > does it (HOMESYSTEM=foo here) ? > > Unless this is an hzoli-ism... It is. I think if one writes $=e she wants to split something. So it is not a bug but a feature. Even `rc' expansion can be used: % foo='a b c' % echo "${^=foo}bar" abar bbar cbar But splitting is disabled when the result should be one word: % bar="${^=foo}bar" % echo $bar a b cbar Bye, Zoltan