Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 'whence' question
- X-seq: zsh-users 19349
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Subject: Re: 'whence' question
- Date: Wed, 05 Nov 2014 18:49:23 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1415209764; bh=zjl3go+X6c6VmDhz6w973GixaeUK12n53q9LbKRhkSw=; h=cc:In-reply-to:From:References:To:Subject:Date:From:Subject; b=Luohd5/Af+dYnNuYf6mDOE3cNZn6ZxXhrAY6XZOLm+R4EwhfD4C0ZkkhVfJiLCo561pWMXxrer3CBawLnttliVV61M+lHgCm/SCvLIjCBe7Pn50AfXUbTqDOh4N7S1RqU3vmaOVCbrhzjtvJqMqjjzhHaeFXVPCQxHYY6L7FiRcgQhcVIcdRDWoGliMcV+C6I2EBvwyqO0cqdjbKhiLeTbZzRwoZ0piisxP/4Dc4nsAJqeK1Rfe6Ym8B7gLFo8xFCz6oACA89Q4MhvazNFR8na5wK0t7WuVczP9PiTzyqvcMBNqYlfS70Ik8Sozc9ax2TEKsUoWr4ES3k87Ia1hkHw==
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.co.uk; b=drz2pabxb8FAWTzQIlOcah0JfeIa4+ayU4L2i1Ih4rtBnKo7QdVurygEESbd9W2u7845ImQ5dqHhgzFcGSz6B2ARrnmML+pfAW0qK64+o8x0z+Bg4nD2ea+73ucP6lkSjdAntcNMiSONFV/+W3oPqaayD/x6pOAWMBIuKm53xLW2Ugl9Shf9LJ2Sg0J96rhssQyUsJ3USoyyqQSme1kdf4le6zgM34CwGyRwt3rO1nLh8n8jwFrsSDpcvbtV4NH4CH9/8RbpfEclo2Apto9XJLPuEg4OLvOKA9KsSy3cN6zYdiqH8nlcVuSTwkrRMZm5Sdkx5h+Lma1SnXsr3T9uvA==;
- In-reply-to: <545A6D66.3080500@eastlink.ca>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <545A6D66.3080500@eastlink.ca>
Ray Andrews wrote:
> ... 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?
Because /bin/zsh is hidden by /usr/local/bin/zsh. The commands are in a
hash table and there is only the one entry for zsh.
Looking at the source, it seems that whence doesn't support both -a and
-m together though it doesn't produce an error.
I'd agree that this isn't ideal. Note that whence -m does show a zsh
alias in addition to /usr/local/bin/zsh if there is one.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author