zsh-workers
 help / color / mirror / code / Atom feed
From: Zefram <A.Main@dcs.warwick.ac.uk>
To: snowcat@gd.cs.CSUFresno.EDU (Snow Cat)
Cc: zsh-workers@math.gatech.edu, zsh@math.gatech.edu
Subject: Re: zsh 2.6beta13 aliases quark
Date: Fri, 29 Dec 1995 16:10:57 +0000 (GMT)	[thread overview]
Message-ID: <26681.199512291612@stone> (raw)
In-Reply-To: <199512242000.MAA16343@ariel.disney.org> from "Snow Cat" at Dec 24, 95 12:00:09 pm

>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


  reply	other threads:[~1995-12-30 21:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-12-24 20:00 Snow Cat
1995-12-29 16:10 ` Zefram [this message]
1996-01-05 10:35 ` P.Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=26681.199512291612@stone \
    --to=a.main@dcs.warwick.ac.uk \
    --cc=snowcat@gd.cs.CSUFresno.EDU \
    --cc=zsh-workers@math.gatech.edu \
    --cc=zsh@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).