Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Avoiding the zshells intelligence...in one case
On Tue, 24 Jan 2017, Martin Vaeth wrote:
> Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > re_nomatch() { { ${~@} } always { setopt nomatch } }
> > alias t='setopt nonomatch && noglob re_nomatch echo'
>
> Why is this risky? Because it can leave nomatch in the wrong state?
Because if you accidentally use it in a pipeline it'll throw away its
standard input, and if you use it in a complex && || series it may not
produce the expected result.
Both of which are even worse if instead of "&&" you use a ";" as you did
in your more complicated formulation.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author