Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: approximate filename globbing
- X-seq: zsh-users 13075
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "Ronald Fischer" <ynnor@xxxxx>
- Subject: Re: approximate filename globbing
- Date: Wed, 30 Jul 2008 14:29:43 +0200
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=jPSdvekM8GVm86UaXZXgP+kHFh4/k/z/ALN2pA9twwE=; b=xnbkGZc5L03fnO2lnq3LIAxbb7kPXYOp8Ii/xMyRmm7zm4GAjZVJKWcFy9srGOb/3l TT7qr+rbWd/efI+O2x6ZK2c2OrP56V5w993TQ16JHCGPaqNXg0qxUrUaPp7aLzV4itbM s7/UhtJ47dGvjqHQJkeXCZIdvKkGWJG+2PnKs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=wGB3tHxYUV+EQ+EhN9BW/7yU70MNjENE8Z6UUshMWxWri49b2sD1iUAjxZ0Jh4MaVx fLNq3IcCDiAgVTbKJh9rsHvWY5vne5cY66lQQfoYjQhZO6ec+HiewfGtv59l+le6RTbj U9wfssUbokJt99S6OteW/LMQe/Ftd7DPmhxJk=
- In-reply-to: <1217330741.1971.1265881685@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <1217330741.1971.1265881685@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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