Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Command alias in non-command position
- X-seq: zsh-users 1780
- From: Wayne Davison <wayne@xxxxxxxxx>
- To: ZSH users mailing list <zsh-users@xxxxxxxxxxxxxxx>
- Subject: Re: Command alias in non-command position
- Date: Tue, 01 Sep 1998 05:51:17 -0700
- In-reply-to: schaefer's message of Wed, 26 Aug 1998 10:36:27 -0700. <980826103628.ZM21060@xxxxxxxxxxxxxxxxxxxxxxx>
"Bart Schaefer" wrote:
> Bruce Stephens wrote:
> } Could I define sudo somehow, to say that its first argument ought to
> } be expanded as if it were in the command position?
>
> alias sudo='sudo '
Very nice. There is a problem, however:
% alias cp='nocorrect cp'
% alias sudo='sudo '
% sudo cp foo bar
sudo: nocorrect: command not found
I assume there is a similar problem with the other pre-command
modifiers.
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author