Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: FNG optional presecence of a character
- X-seq: zsh-users 9954
- From: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- To: zzapper <david@xxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: FNG optional presecence of a character
- Date: Wed, 22 Feb 2006 15:53:44 -0600
- In-reply-to: <20060222212925.GA23470@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns9772DA1CE2052zzappergmailcom@xxxxxxxxxxx> <20060222212925.GA23470@xxxxxxxxxxx>
In the last episode (Feb 22), Clint Adams said:
> > _fred.php
> > fred.php
> >
> > I know I can do a clumsy
> >
> > ls [_f][fr]*.php
>
> ls {_,}fred.php
Not strictly the same, since that's brace expansion, not globbing.
This is the equivalent glob pattern (match _ or the empty string):
ls (_|)fred.php
--
Dan Nelson
dnelson@xxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author