From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28854 invoked by alias); 2 Jan 2014 23:52:00 -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: 18267 Received: (qmail 20799 invoked from network); 2 Jan 2014 23:51:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=sRzIjUWmG/73jaAODx7qznHVT+HqNHBI9+2/76SAUoU=; b=hH/Lex2kAUx4KhTjiOacx1qlePtb7CNV5TSYOuTbSinnwzJLgt8+EkFDoh49HMZgj8 bQyV+U3eDr+UayTsx5ysX6QDRrUq9cD1d95TQ2IcxP5Pv/dEBoj3qMk496TLkBPVpFxY reSZLi5R+6kObOlTq8rSd4JShwc3pnuLKaiMPFOWj+3IYxgkLy/eks5n85+hPh2aFMWF 3l1GQL3vH4lWH6eHZAr1zJQpVLPkNG1ZhMqiSS3nt2TPzFuDSvGREH2arl0PZJxI+zbf jy4AQPluJcNysWI/j286m1DkGotnxS6/vfX1gLFu/BxW6eMaou/tBmcoubxXDeJH2sDq uHqQ== X-Gm-Message-State: ALoCoQkCsvvchPpf7NFiwC9D9wGxrGcY5zBFVS9+zu4PjV6zvcPlF0NZg4Iq67vXr6a050SAk4fD X-Received: by 10.180.36.8 with SMTP id m8mr56860676wij.3.1388700883768; Thu, 02 Jan 2014 14:14:43 -0800 (PST) X-ProxyUser-IP: 86.6.157.246 Date: Thu, 2 Jan 2014 22:14:41 +0000 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: difference between ~ & ^ negation Message-ID: <20140102221441.204d812e@pws-pc.ntlworld.com> In-Reply-To: <140102133636.ZM10014@torch.brasslantern.com> References: <140101134459.ZM8931@torch.brasslantern.com> <20140102210147.0eca0601@pws-pc.ntlworld.com> <140102133636.ZM10014@torch.brasslantern.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 02 Jan 2014 13:36:36 -0800 Bart Schaefer wrote: > Hmm. So what does that mean about a "^" appearing after a "^" ? That > is, since / is not special, the expression ^foo/^bar means something > completely different in pattern context and file generation context? In pattern context that's the same as ^(foo/^bar). foo/^bar matches foo/ followed by anything that's not bar, so this highly useful expression matches anything except a string consisting of foo/ followed by something other than bar. pws