From: Christian Taylor <cht@chello.at>
To: "zsh-users" <zsh-users@sunsite.dk>
Subject: Re: ranges
Date: Thu, 2 Jun 2005 15:57:22 +0200 [thread overview]
Message-ID: <200506021557.22069.cht@chello.at> (raw)
In-Reply-To: <nhbt91p3nauqo8e6664fagejs5thv1v70o@4ax.com>
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
next prev parent reply other threads:[~2005-06-02 13:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-01 15:42 ranges zzapper
2005-06-01 16:28 ` ranges Christian Taylor
2005-06-02 7:02 ` ranges zzapper
2005-06-02 13:57 ` Christian Taylor [this message]
2005-06-02 16:19 ` ranges Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200506021557.22069.cht@chello.at \
--to=cht@chello.at \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).