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

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



On Mon, 23 Jan 2017, Martin Vaeth wrote:

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

You could try this, but it's potentially risky:

re_nomatch() { { ${~@} } always { setopt nomatch } }
alias t='setopt nonomatch && noglob re_nomatch echo'



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