From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: whence (was Re: local unfunction)
Date: Wed, 4 Apr 2018 18:10:17 +0000 [thread overview]
Message-ID: <20180404181017.lcz74c4tyojz77ao@tarpaulin.shahaf.local2> (raw)
In-Reply-To: <CAH+w=7YL7S-+QQD0-kLEFh=FFgLBSriEyHzbtL9cjqq_9u1U4Q@mail.gmail.com>
Bart Schaefer wrote on Sun, Apr 01, 2018 at 11:17:40 -0700:
> On Sun, Apr 1, 2018 at 10:33 AM, Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> >
> > So, -m can lie if 'rehash' hasn't been run since $PATH was last changed?
>
> It forces a cmdnamtab->filltable() before scanning, so I think not.
Let me rephrase. In your example:
> > > % path=(./Src $path)
> > > % whence zsh
> > > ./Src/zsh
> > > % whence -a zsh
> > > ./Src/zsh
> > > /bin/zsh
> > > % whence -m zsh
> > > /bin/zsh
> > > %
why do 'whence' and 'whence -m' give different results? Isn't one or the other
wrong?
next prev parent reply other threads:[~2018-04-05 0:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-31 15:25 Bart Schaefer
2018-03-31 17:21 ` Ray Andrews
2018-04-01 1:18 ` Bart Schaefer
2018-04-01 4:29 ` Ray Andrews
2018-04-01 17:33 ` Daniel Shahaf
2018-04-01 18:17 ` Bart Schaefer
2018-04-04 18:10 ` Daniel Shahaf [this message]
2018-04-05 0:20 ` Bart Schaefer
2018-04-05 1:41 ` Ray Andrews
2018-04-05 5:08 ` Bart Schaefer
2018-04-05 14:28 ` 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=20180404181017.lcz74c4tyojz77ao@tarpaulin.shahaf.local2 \
--to=d.s@daniel.shahaf.name \
--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).