From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Hrvoje Niksic <hniksic@srce.hr>, zsh-users@math.gatech.edu
Subject: Re: Help on zsh grammar
Date: Wed, 22 Jan 1997 23:23:58 -0800 [thread overview]
Message-ID: <970122232359.ZM7162@candle.brasslantern.com> (raw)
In-Reply-To: Hrvoje Niksic <hniksic@srce.hr> "Re: Help on zsh grammar" (Jan 23, 7:31am)
On Jan 23, 7:31am, Hrvoje Niksic wrote:
} Subject: Re: Help on zsh grammar
}
} Bart Schaefer (schaefer@candle.brasslantern.com) wrote:
} > alias test 'noglob test'
}
} This should be:
} alias test='noglob test'
Er, yes. I always forget that I use:
alias() {
local cmd eq
if [[ $# -eq 0 ]]
then
cmd=-L
else
cmd="$1"
shift
fi
if [[ $# -gt 0 ]]
then
eq='='
else
eq=
fi
builtin alias "$cmd"$eq"$@"
}
Also, what I said about the order of defining aliases and functions was
not quite what I meant.
The rule is: Define first those aliases you expect to use in the body
of a function, but define the function first if the alias has the same
name as the function.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.nbn.com/people/lantern
prev parent reply other threads:[~1997-01-23 7:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.SV4.3.95.970122185019.1005B-100000@itsrm1.mow.sni.de>
1997-01-22 19:35 ` Bart Schaefer
1997-01-23 6:31 ` Hrvoje Niksic
1997-01-23 7:23 ` Bart Schaefer [this message]
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=970122232359.ZM7162@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=hniksic@srce.hr \
--cc=schaefer@nbn.com \
--cc=zsh-users@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).