From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12159 invoked by alias); 1 Aug 2011 10:26:36 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16176 Received: (qmail 7282 invoked from network); 1 Aug 2011 10:26:33 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at spf.messagingengine.com designates 66.111.4.26 as permitted sender) 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= Message-Id: <1312194058.12893.2158087337@webmail.messagingengine.com> X-Sasl-Enc: arXw6t0M3tk8HWiGl4DZ2v8fRDBcS9FDCreZ9zBi05Ll 1312194058 From: "Ronald Fischer" To: "Stephane Chazelas" Cc: zsh-users@zsh.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Mailer: MessagingEngine.com Webmail Interface References: Subject: Re: Why does this extended glob pattern fail? In-Reply-To: Date: Mon, 01 Aug 2011 12:20:58 +0200 On Wed, 27 Jul 2011 15:32 +0100, "Stephane Chazelas" 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 + 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)