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

precommand modifiers and alias sudo="sudo "




I have set up an alias sudo="sudo " that enables use of aliases with sudo.

But now precommand modifiers like "nocorrect" or "env"* stopped working.

p% alias mkdir
mkdir='nocorrect mkdir'
% sudo mkdir foo
sudo: nocorrect: command not found
%

Anything I can do? Or should I forget about the idea of using aliases with sudo?


Sebastian


*I know that env is not a zsh precommand modifier, but the problem is the same.



Messages sorted by: Reverse Date, Date, Thread, Author