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

Re: bug in patterns used for filename expansion (e.g. a[b/c]d)



Vincent Lefevre wrote:
> zsh 4.3.4 isn't POSIX-compliant concerning filename expansion and
> unmatched [. POSIX[*] says:
> 
>   For example, the pattern "a[b/c]d" does not match such pathnames as
>   abd or a/d. It only matches a pathname of literally a[b/c]d.
> 
> [*] http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#t
> ag_02_13_03
> 
> But with zsh 4.3.4:
> 
> prunille% ls a[b/c]d
> zsh: no matches found: a[b/c]d

As I said on the Austin group list, this isn't a bug.  It's controlled
by the option NOMATCH; you'll find that if zsh is in compatibility mode
that option is unset.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



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