Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: =nonexistent crashes scripts
- X-seq: zsh-users 8236
 
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
 
- To: kynn@xxxxxxxxx
 
- Subject: Re: =nonexistent crashes scripts
 
- Date: Wed, 24 Nov 2004 10:51:24 -0800 (PST)
 
- Cc: zsh-users@xxxxxxxxxx
 
- In-reply-to: <200411241832.iAOIW1408107@xxxxxxxxxxxxxxxx>
 
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
 
- References: <200411241832.iAOIW1408107@xxxxxxxxxxxxxxxx>
 
- Reply-to: zsh-users@xxxxxxxxxx
 
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