From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5024 invoked by alias); 3 Jan 2015 07:17:39 -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: 19678 Received: (qmail 14123 invoked from network); 3 Jan 2015 07:17:24 -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 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=b6gFOWC0 c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=YNv0rlydsVwA:10 a=i6VJCcX2DDOJh-oSKywA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <150102231734.ZM22168@torch.brasslantern.com> Date: Fri, 02 Jan 2015 23:17:34 -0800 In-reply-to: <54A783C3.3000006@eastlink.ca> Comments: In reply to Ray Andrews "Re: symlink chain." (Jan 2, 9:53pm) References: <549E3A7B.9010209@eastlink.ca> <20150102170307.7d2e644a@ntlworld.com> <54A6E6B1.6070201@eastlink.ca> <20150102212422.3a761af5@ntlworld.com> <54A7136C.1060102@eastlink.ca> <20150102222140.1303a633@ntlworld.com> <54A72CEF.9090102@eastlink.ca> <54A740F3.4040902@eastlink.ca> <150102210337.ZM22099@torch.brasslantern.com> <54A783C3.3000006@eastlink.ca> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: symlink chain. MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jan 2, 9:53pm, Ray Andrews wrote: } Subject: Re: symlink chain. } } On 01/02/2015 09:03 PM, Bart Schaefer wrote: } > On Jan 2, 5:08pm, Ray Andrews wrote: } > } if (OPT_ISSET(ops,'m') && **argv != '/' ) { } > } } > } ... seems to work. } > } > I wouldn't use the word "work" exactly. All that does is turn off the } > pattern matching entirely. ... for strings beginning with a '/', obviously, not for all patterns. Which is broken for aliases and shell functions: torch% /foo() { print Look, I have a slash. } torch% whence -v /foo /foo is a shell function torch% whence -mv '/fo?' # won't work with the above change /foo is a shell function PWS's change for -a only works because it happens so late in the algorithm that there is nothing left but path to search, and no patterns left to be tried.