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

Re: ranges



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