Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why does this extended glob pattern fail?
- X-seq: zsh-users 16176
- From: "Ronald Fischer" <ynnor@xxxxx>
- To: "Stephane Chazelas" <stephane.chazelas@xxxxxxxxx>
- Subject: Re: Why does this extended glob pattern fail?
- Date: Mon, 01 Aug 2011 12:20:58 +0200
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:cc:mime-version :content-transfer-encoding:content-type:references:subject :in-reply-to:date; s=smtpout; bh=iX7XqZNw/1RhiViA82bIn/7pj6s=; b= L+/vlmB1VwxSPgxgvRFYhb+U+8WpjywkpST1Q/bkVs6ZPX9MgkOXOMARblrF0yBw Qfq9XLgoC5S+4aLm6hCC0eZCcRCOQ9UvY6eJlIv/QSOh47FYdBNTkkms8wiItP6P lBNVCZdUsC0qJYlTbYjJUMmXywSjv7vtnzygiMDuDCs=
- In-reply-to: <chaz20110727143211.GB967@seebyte.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <chaz20110727143211.GB967@seebyte.com>
On Wed, 27 Jul 2011 15:32 +0100, "Stephane Chazelas"
<stephane.chazelas@xxxxxxxxx> wrote:
> or better, use globbing alternate operator rather than brace
> expansion:
>
> cp ^$from/*.(log|png) $dest
Actually, this does not work either. Instead, I have to write
cp $from/^*.(log|png) $dest
The reason is that ^ doesn't apply to the *whole* word, but only up to
the first '/'.
Thanks for helping!
Ronald
--
Ronald Fischer <ronaldf@xxxxxx>
+ If a packet hits a pocket on a socket on a port,
+ and the bus is interrupted and the interrupt's not caught,
+ then the socket packet pocket has an error to report.
+ (cited after Peter van der Linden)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author