csh alias command
Guy Harris
guy at auspex.auspex.com
Thu Apr 18 04:48:54 AEST 1991
Is this some sneaky trick to drag some poor newbie into cross-posting to
"talk.bizarre", so you can roast him?
In any case, for those who are curious:
>When I list my aliases one of them shows up parenthesized. It
>is one that is of the form
>
> alias foo foo -options
>
>Typing "alias" results in
>
> foo (foo -options)
>
>Other aliases which have different names than the command they
>alias to and aliases which have been quoted do not seem to get
>parenthesized.
A quick look at the 4.3BSD C shell code indicates that aliases with only
one token aren't enclosed in parentheses, and those with more than one
token are.
alias foo "foo -options"
has only one token, namely '"foo -options"'.
alias foo foo -options
has two, namely 'foo' and '-options'.
More information about the Comp.unix.questions
mailing list