Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Brace Expansion
- X-seq: zsh-users 7397
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Brace Expansion
- Date: Fri, 23 Apr 2004 15:13:06 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <9f5i80hlg5kolhbm1behb316pe0jda0qvh@xxxxxxx> <15425.1082728843@xxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
On Fri, 23 Apr 2004 15:00:43 +0100, wrote:
>zzapper wrote:
>> > ls -l *.{cfm,htm,html}
>>
>> >\ls -t *.{html,cfm,htm}
>> zsh: no matches found: *.htm
>
>The correct way to do this is
> ls -l *.(cfm|htm|html)
>Then you'll only get `no matches' if none of the variants matched, which
>is presumably what you want.
>
>Brace expansion is not part of globbing; it generates `*.html *.cfm
>*.htm' before the patterns are examined.
ls *.(Thanks|Merci|Dankeshoen|Gratzi)
zzapper (vim, cygwin, wiki & zsh)
--
vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?"
http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author