From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12803 invoked by alias); 4 Jan 2014 21:11:43 -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: 18280 Received: (qmail 20415 invoked from network); 4 Jan 2014 21:11:39 -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=-0.7 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_NUMERIC_HELO,SPF_HELO_PASS autolearn=no version=3.3.2 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: zzapper Subject: Re: difference between ~ & ^ negation Date: Sat, 4 Jan 2014 21:11:07 +0000 (UTC) Organization: Your Company Message-ID: References: <140101134459.ZM8931@torch.brasslantern.com> <20140102210147.0eca0601@pws-pc.ntlworld.com> <140102133636.ZM10014@torch.brasslantern.com> <140102233726.ZM10543@torch.brasslantern.com> <20140103194802.2f7cae9d@pws-pc.ntlworld.com> <20140103201056.1bb2dc32@pws-pc.ntlworld.com> <140103134326.ZM11500@torch.brasslantern.com> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 2.25.230.43 User-Agent: Xnews/2009.05.01 X-Antivirus: avast! (VPS 140103-0, 01/03/2014), Outbound message X-Antivirus-Status: Clean Bart Schaefer wrote in news:140103134326.ZM11500@torch.brasslantern.com: > On Jan 3, 8:10pm, Peter Stephenson wrote: > } > } Corrections I spotted myself before anyone else picks nits. > > Sadly, here come some nits anyway. > > } + For matching files by globbing, mytt(~) is the only globbing > } + operator to have a lower precedence than mytt(/). In other > words, } + when you have mytt(/a/path/to/match~/a/path/not/to/match) > the mytt(~) } + considers what's before and what's after as complete > paths to file names. > > In my first response on this thread, I struggled mightily with how to > explain exactly how the before/after patterns are applied. The phrase > "complete paths to file names" might be considered to mean that the > paths must start from the root (which your example further suggests), > but in fact they're not "complete" paths. For purposes of the pattern > before the tilde, it matches ordinary path references which unless > begun with a slash are relative to $PWD. For purposes of the pattern > after the tilde, it matches strings, which merely happen to be [parts > of] the names of things derived from the paths matched by the before > part. Hi will there be a summary of this for us mere mortals :) Will the FAQs be changed and if so can you point us at the relevant sections zzapper --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com