Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh fails when Globing fails
- X-seq: zsh-users 9196
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Zsh fails when Globing fails
- Date: Wed, 27 Jul 2005 10:44:53 +0100
- In-reply-to: <20050727071943.GA3325@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <1122445746.19346.ezmlm@xxxxxxxxxx> <20050727071943.GA3325@xxxxxxxxxx>
Ligesh wrote:
> I would like to know how to turn off the strict globbing feature in zsh. In
> bash, if a globbing fails, the shell will simply pass the full string - metac
> haracters and all - directly to the program. But zsh bails out when globbing
> fails. So currenlty I have to include all of them in single quotes to make it
> work.
>
> IS there a config option which can get back the bash like behaviour?
You need "setopt nonomatch". (Not "setopt nullglob": that will remove
the failed matches from the line altogether, which isn't what you want.)
pws
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author