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

Re: Zsh fails when Globing fails



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