From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14364 invoked by alias); 2 Jan 2014 21:36:54 -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: 18266 Received: (qmail 29701 invoked from network); 2 Jan 2014 21:36:49 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140102133636.ZM10014@torch.brasslantern.com> Date: Thu, 02 Jan 2014 13:36:36 -0800 In-reply-to: <20140102210147.0eca0601@pws-pc.ntlworld.com> Comments: In reply to Peter Stephenson "Re: difference between ~ & ^ negation" (Jan 2, 9:01pm) References: <140101134459.ZM8931@torch.brasslantern.com> <20140102210147.0eca0601@pws-pc.ntlworld.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: difference between ~ & ^ negation MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jan 2, 9:01pm, Peter Stephenson wrote: } Subject: Re: difference between ~ & ^ negation } } On Wed, 01 Jan 2014 13:44:59 -0800 } Bart Schaefer wrote: } > Important note: ^ is special only in cases where / is special (globs). } } That's not true... } } setopt extendedglob } [[ foo = ^foo ]] || print foo actually is foo } [[ bar = ^foo ]] && print but bar is not foo } } "^" is still special here; the difference is that if a "/" appeared } after it *that* wouldn't be special in this context 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? That second caret is the usage I was referring to when I said "only in cases where / is special". (Whether or not there is a leading caret.)