Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Command alias in non-command position



"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