From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (euclid.skiles.gatech.edu [130.207.146.50]) by werple.net.au (8.7/8.7.1) with ESMTP id IAA15284 for ; Sun, 31 Dec 1995 08:09:14 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id PAA01678; Sat, 30 Dec 1995 15:44:28 -0500 (EST) Resent-Date: Sat, 30 Dec 1995 15:44:28 -0500 (EST) From: Zefram Message-Id: <26681.199512291612@stone> Subject: Re: zsh 2.6beta13 aliases quark To: snowcat@gd.cs.CSUFresno.EDU (Snow Cat) Date: Fri, 29 Dec 1995 16:10:57 +0000 (GMT) Cc: zsh-workers@math.gatech.edu, zsh@math.gatech.edu In-Reply-To: <199512242000.MAA16343@ariel.disney.org> from "Snow Cat" at Dec 24, 95 12:00:09 pm X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]6818.37 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"TPRjG1.0.8Q.iIQvm"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/699 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >After processing the following alias file, some of 1-letter aliases become >global. That is, "ls e" prints: emacs: no such file or directory. But "echo e" >just prints e. Note that both "ls" and "e" are aliased [...] >alias ls="ls -aFC $LS_OPTIONS" >alias e=emacs If $LS_OPTIONS is empty *when this alias command is executed*, the expansion text of ls will end in whitespace which (deliberately, it's a feature) will cause the next word on the line to be checked for alias expansion. What you really want is alias ls='ls -aFC $LS_OPTIONS' which makes the last character in the expansion text 'S', so you don't get the alias problem, and it lets you change $LS_OPTIONS later. -zefram