From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13258 invoked by alias); 2 Jan 2015 22:22:18 -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: 19672 Received: (qmail 21317 invoked from network); 2 Jan 2015 22:22:16 -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=7GXXTFo-1CUQI-H_wBcA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <150102142225.ZM9252@torch.brasslantern.com> Date: Fri, 02 Jan 2015 14:22:25 -0800 In-reply-to: <54A7136C.1060102@eastlink.ca> Comments: In reply to Ray Andrews "Re: symlink chain." (Jan 2, 1:53pm) References: <549E3A7B.9010209@eastlink.ca> <20150102170307.7d2e644a@ntlworld.com> <54A6E6B1.6070201@eastlink.ca> <20150102212422.3a761af5@ntlworld.com> <54A7136C.1060102@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, 1:53pm, Ray Andrews wrote: } } Another little gotcha: } } $ whence -s /usr/bin/zsh } /usr/bin/zsh -> /usr/local/bin/zsh-5.0.7-165-g2194da1 } } $ whence -sa /usr/bin/zsh } (nothing) } } ... why would the '-a' switch kill the '-s' switch? The literal answer is because -a does a search of the command hash table keys, and command full paths are values, not keys. The more descriptive answer is because -a is supposed to mean a path search for the argument, and the string "/usr/bin/zsh" is not the name (as in, last path element) of a file found in a directory in $path.