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

Re: Alias named '='



René Neumann wrote on Sun, Oct 08, 2017 at 12:57:43 +0200:
> Am 08.10.2017 um 10:29 schrieb Vincent Bernat:
> > I am using "c" instead of "=", but you can use "=" with:
> > 
> > aliases[=]='noglob ='
> > 
> 
> Ah, thanks! That worked.

It did, but setting aliases this way not supported:

% aliases[=]='echo foo'
% alias -L >/dev/null
zsh: invalid alias '=' encountered while printing aliases
% 

Context: http://www.zsh.org/cgi-bin/mla/redirect?WORKERNUMBER=37548

Suggest that you use something other than '=' as the first character.

Cheers,

Daniel



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