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

Re: =nonexistent crashes scripts



On Wed, 24 Nov 2004 kynn@xxxxxxxxx wrote:

> This seems like a serious bug to me; it makes the =command facility all 
> but useless. Is there any way around this?

It's not a bug, it's an intentional feature of file expansion.  Try 
"setopt nonomatch".

Or don't use file expansion.  =command was really meant as a shortcut for
interactive command entry, not as a scripting tool.  In a script you 
should be using something like

  FOO=$(whence -p nonexistent)



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