Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ranges
- X-seq: zsh-users 8943
- From: Christian Taylor <cht@xxxxxxxxx>
- To: "zsh-users" <zsh-users@xxxxxxxxxx>
- Subject: Re: ranges
- Date: Thu, 2 Jun 2005 15:57:22 +0200
- In-reply-to: <nhbt91p3nauqo8e6664fagejs5thv1v70o@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <milr91541g9uethehdcrs2ru7qir9iumpb@xxxxxxx> <200506011828.32719.cht@xxxxxxxxx> <nhbt91p3nauqo8e6664fagejs5thv1v70o@xxxxxxx>
On Thursday 02 June 2005 09:02, you wrote:
> To summarise
>
> >> ls fred{09..13}.pl # noisy
> >> ls fred<76-99>.pl # silent
> >> ls fred<76->.pl # cute
Well, the first form is for things like "touch fred{09..13}.pl"
> > but surely following are identical?
> >
> >> ls *.(jpg|gif) #
> >> ls *.{jpg,gif} #
No! The first one uses zsh globbing to give ls the matching files, the second
one first expands the command to "ls *.jpg *.gif" and works from there. Just
try it in a folder with some .jpg files but no .gif files.
Christian Taylor
Messages sorted by:
Reverse Date,
Date,
Thread,
Author