zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: 'whence' question
Date: Wed, 05 Nov 2014 17:50:24 +0000	[thread overview]
Message-ID: <20141105175024.7fe98e2c@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <545A6D66.3080500@eastlink.ca>

On Wed, 05 Nov 2014 10:33:10 -0800
Ray Andrews <rayandrews@eastlink.ca> 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


      parent reply	other threads:[~2014-11-05 17:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-05 18:33 Ray Andrews
2014-11-05 17:49 ` Oliver Kiddle
2014-11-05 18:00   ` Peter Stephenson
2014-11-06  4:43     ` Bart Schaefer
2014-11-06 21:45       ` Ray Andrews
2014-11-06 21:53         ` Bart Schaefer
2014-11-06 23:15           ` Ray Andrews
2014-11-06 22:54             ` Bart Schaefer
2014-11-05 19:15   ` Ray Andrews
2014-11-05 17:50 ` Peter Stephenson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141105175024.7fe98e2c@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).