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

Re: approximate filename globbing



2008/7/29 Ronald Fischer <ynnor@xxxxx>:
> I have trouble understanding the "Approximate Matching" section
> in the zsh manual.
>
> Assume I have in my directory files cn1.pl, cn2.pl, cn3.pl, and
> I use the following glob pattern:
>
>  ls (#a2)cnx.pl
>
> I had expected to see all my cn?.pl displayed, but instead I
> get a "zsh: no match" error.
>
> How do I correctly use (#a...) for globbing?

You need to
setopt extendedglob

-- 
Mikael Magnusson



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