From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17053 invoked by alias); 2 Jan 2015 23:42:46 -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: 19673 Received: (qmail 8471 invoked from network); 2 Jan 2015 23:42:43 -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-Authority-Analysis: v=2.1 cv=T/C1EZ6Q c=1 sm=1 tr=0 a=HOv8TPlFSS3eFj132gCofQ==:117 a=HOv8TPlFSS3eFj132gCofQ==:17 a=Hpgzp-inWqAA:10 a=N659UExz7-8A:10 a=UofsC7DnOGemBk5K69gA:9 a=pILNOxqGKmIA:10 Message-id: <54A72CEF.9090102@eastlink.ca> Date: Fri, 02 Jan 2015 15:42:39 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.3.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: symlink chain. 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> In-reply-to: <20150102222140.1303a633@ntlworld.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 01/02/2015 02:21 PM, Peter Stephenson wrote: > > ... why would the '-a' switch kill the '-s' switch? > It's nothing to do with "-s", it's the "-a". I put that patch in by hand and it sorts out the -sa issue, alas: $ whence -asm "/usr/bin/zsh" (nothing) I'm expecting -m to widen the search where wildcards are present, and to leave the search unchanged otherwise, but not to kill -s and/or -a. Is it not a general rule that switches are 'cumulative' in nature? IOW each switch adds something, (unless its an exclusivity thing like -v -c -w), such that we shouldn't have to worry about one switch screwing around with what the other switches do? -a: find all matches on the path -s: expand symlinks (if any) -S: expand the full 'chain' of symlinks (if any). -m: accept wildcards in the search string (if given). ... none of those things contradict each other (tho -S subsumes -s).