zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: whence defect?
Date: Wed, 28 Mar 2018 08:53:28 -0700	[thread overview]
Message-ID: <CAH+w=7Zxb6PnDPq_+6uF4RD3ahnjceWffPT2LiN6=e_ysFXQ5A@mail.gmail.com> (raw)
In-Reply-To: <09108f69-73cd-1070-9f57-2d275e62fe06@eastlink.ca>

On Wed, Mar 28, 2018 at 6:06 AM, Ray Andrews <rayandrews@eastlink.ca> 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 "/".


  reply	other threads:[~2018-03-28 15:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-28 13:06 Ray Andrews
2018-03-28 15:53 ` Bart Schaefer [this message]
2018-03-28 16:41   ` Ray Andrews

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='CAH+w=7Zxb6PnDPq_+6uF4RD3ahnjceWffPT2LiN6=e_ysFXQ5A@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=rayandrews@eastlink.ca \
    --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).