Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Avoiding the zshells intelligence...in one case
On Sun, 22 Jan 2017, Martin Vaeth wrote:
> 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?
torch% zscript() { print -l -- $@ }
torch% nonomatch() { setopt localoptions nonomatch; ${~@} }
torch% alias zscript='noglob nonomatch zscript'
torch% zscript *x *c
*x
Doc
Etc
Src
torch%
Maybe you need a more thorough version:
nonomatch() {
setopt localoptions nonomatch nonullglob nocshnullglob
${~@}
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author