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

Re: Alias call in function fails...



On Tuesday, June 23, 2020 2:46:50 PM CEST Perry Smith wrote:
> My amateur 2 cents … I gave up on aliases with bash and never tried them
> with zsh.
> 
> Aliases are just weird oddities that have lots of special cases.  Since
> functions now exist (aliases came first in the global history of shells), I
> don’t see any advantages to aliases and they have many problems.
> 
> I don’t know of anything an alias can do that a function can’t?

Yet such things exist.  You can find many use cases for them in the User’s 
Guide to the Z-Shell, as for example:

% alias %=' '
% alias mkdir='nocorrect mkdir'
% alias zfget='noglob zfget'

Kamil




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