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

Re: Avoiding the zshells intelligence...in one case



Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>> >
>> > nonomatch() { setopt localoptions nonomatch; ${~@} }
>> > alias zscript='noglob nonomatch zscript'
>>
>> This does not seem to work: Setting of nonomatch comes to late
>
> In exactly what way does it not work?

% nonomatch() { setopt localoptions nonomatch; ${~@} }
% alias t='noglob nonomatch echo'
% setopt nomatch
% t ~dummy
zsh: no such user or named directory: dummy
% setopt nonomatch
% t ~dummy
~dummy



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