Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: whence defect?
- X-seq: zsh-users 23286
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Subject: Re: whence defect?
- Date: Wed, 28 Mar 2018 08:53:28 -0700
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ty4+fDMolCsotq5+tsihZZTYFj4G7HYfTbGtcHp/x/U=; b=zdIHkbV0mhDu2hvSgN6knA7tFecxstzeJ81AAmWswKyXQ3dysNJ7Qd4rmgTXK9/xyH HPlQiDwFbxgO5qaLn1XpsW8yXQ2fFd3+fbMBHx8TREwH0C5g0jwff4NlLm3HUTMdQymO XE+uodobovln3Ir3vNg91WGbPNJup7ETv3wOkPOgA4leLhv6BOMQd+m7SN+41aMna74O IXrR+f9i5TwZdlQLea0CAVo0xH0XZp9Wk+pzexUc6SIXaDOXFRL4lnGjyLdqvC3hU+QX vJYxmMBvXg0JbHoJ+UuZexVsT1j/CCKmTdWXL5hG+hti3pHMChsObHBPKATGnbbMc2sG LF6g==
- In-reply-to: <09108f69-73cd-1070-9f57-2d275e62fe06@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>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <09108f69-73cd-1070-9f57-2d275e62fe06@eastlink.ca>
On Wed, Mar 28, 2018 at 6:06 AM, Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> /bin $ whence -aS zsh
> ./zsh
> /usr/local/bin/zsh -> /aWorking/Bin/zsh5.3
> /usr/bin/zsh -> /aWorking/Bin/zsh5.3
> /bin/zsh -> /aWorking/Bin/zsh5.3
>
> /bin $
>
> Can that be right? I'd probably prefer that the duplicate find of /bin/zsh
> was detected (current directory and '/bin' explicitly) and removed
That'd get very strange to keep track of, given that "." could appear
anywhere in the path, including at the end. You did ask (-a) for ALL
occurrences.
> perhaps noted, but if it is to show up twice why would the 'dot' version not
> show that it's a link as the explicit entry does?
Hmm. The code to print whether a command is a symbolic link is using
zsh's internal symlink-chasing routine, but that method only works for
file names starting with "/".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author