From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5338 invoked by alias); 5 Nov 2014 17:50:31 -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: 19348 Received: (qmail 14840 invoked from network); 5 Nov 2014 17:50:29 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f5-b7f956d000005ed7-aa-545a636190c1 Date: Wed, 05 Nov 2014 17:50:24 +0000 From: Peter Stephenson To: Zsh Users Subject: Re: 'whence' question Message-id: <20141105175024.7fe98e2c@pwslap01u.europe.root.pri> In-reply-to: <545A6D66.3080500@eastlink.ca> References: <545A6D66.3080500@eastlink.ca> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphluLIzCtJLcpLzFFi42I5/e/4Zd3E5KgQg0nbrS12nFzJ6MDoserg B6YAxigum5TUnMyy1CJ9uwSujL23f7IWnGCr+L52EXsD43eWLkZODgkBE4mp92czQdhiEhfu rWfrYuTiEBJYyihx9dRcZiiHSeL3nD1AGQ4OFgFVia8dbCANbAKGElM3zWYEsUUEFCXO/PoG NkhYQE7i/7zjYDW8AvYSz/7OBrM5BbQlnt+czQxiCwloSVyYvwcszi+gL3H17yeoI+wlZl45 wwjRKyjxY/I9sEOZgeo3b2tihbDlJTavecs8gVFgFpKyWUjKZiEpW8DIvIpRNLU0uaA4KT3X SK84Mbe4NC9dLzk/dxMjJAS/7mBceszqEKMAB6MSD69HU2SIEGtiWXFl7iFGCQ5mJRHe1qio ECHelMTKqtSi/Pii0pzU4kOMTBycUg2M0rUfeVLnMMt/nbl31aPpvotCU4rNLqeJbt+3YnKa YL/mp+S7THH9TQECHD97p99/LMzc2/Cy0Cr5wQ7O59XrPqz6+cTXbZbec6btNq/ML6fKqc1w zI2a6hW6Nz2qvv/jXNVjVqVVnXcPz1uh2rrz9VPbw0bKzxn1H560Z561UyWD68/HTc8klFiK MxINtZiLihMB96Ia/R8CAAA= On Wed, 05 Nov 2014 10:33:10 -0800 Ray Andrews wrote: > This seems right, the '-a' switch doesn't take wildcards: > > > $ whence -a zsh > /usr/local/bin/zsh > /usr/bin/zsh > /bin/zsh > > ... however the '-m' switch accepts wildcards: > > > $ whence -m "zsh*" > /usr/local/bin/zsh > /usr/local/bin/zsh-ok > /usr/local/bin/zsh-test1 > /usr/local/bin/zsh-test2-orig-rebuild > /bin/zsh4 > /bin/zsh5 > > ... yet, although '/usr/local/bin/zsh' is found, all of the other files > found by > 'whence -a zsh' above are missed. How is it that '/usr/local/bin/zsh' > matches > 'zsh*' but '/bin/zsh' does not? It's telling you the first instance of each distinct command it finds. To find all instances, you need to specify -a as well. pws