* zsh 2.6beta13 aliases quark
@ 1995-12-24 20:00 Snow Cat
1995-12-29 16:10 ` Zefram
1996-01-05 10:35 ` P.Stephenson
0 siblings, 2 replies; 3+ messages in thread
From: Snow Cat @ 1995-12-24 20:00 UTC (permalink / raw)
To: zsh-workers, zsh
[-- Attachment #1: Type: application/X-pgp-message, Size: 1645 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: zsh 2.6beta13 aliases quark
1995-12-24 20:00 zsh 2.6beta13 aliases quark Snow Cat
@ 1995-12-29 16:10 ` Zefram
1996-01-05 10:35 ` P.Stephenson
1 sibling, 0 replies; 3+ messages in thread
From: Zefram @ 1995-12-29 16:10 UTC (permalink / raw)
To: Snow Cat; +Cc: zsh-workers, zsh
>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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: zsh 2.6beta13 aliases quark
1995-12-24 20:00 zsh 2.6beta13 aliases quark Snow Cat
1995-12-29 16:10 ` Zefram
@ 1996-01-05 10:35 ` P.Stephenson
1 sibling, 0 replies; 3+ messages in thread
From: P.Stephenson @ 1996-01-05 10:35 UTC (permalink / raw)
To: Snow Cat, Zsh hackers list
snowcat@gd.cs.CSUFresno.EDU wrote:
> 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
> Could you look into it?
> ...
> alias ls="ls -aFC $LS_OPTIONS"
> alias e=emacs
Sorry about the late reply...
Check to see if LS_OPTIONS has a space at the end. This would be
copied to the end of the ls alias, which would trigger alias expansion
on the next word, giving the effect you observe.
--
Peter Stephenson <pws@ifh.de> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-01-05 11:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-12-24 20:00 zsh 2.6beta13 aliases quark Snow Cat
1995-12-29 16:10 ` Zefram
1996-01-05 10:35 ` P.Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).