Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: whence (was Re: local unfunction)
- X-seq: zsh-users 23304
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: whence (was Re: local unfunction)
- Date: Wed, 4 Apr 2018 18:10:17 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=GezxZS5Cd0ZjdIO0ngBeCTE6ko8CR EIzTXjpCR3tqiM=; b=BvYCUIMb1kakRVB8b3mLVmESrR6IQugVwmJv0p0I5vc2R WrKgw/IlXUBKE0V8Q9Icl/XyJkKCI/9tnsCDnrQ+Lmy8xqX0tWwqNeLXVqOoiIZx C5kRgAvuQwVQjZ5UhXgarAzms+8FUNEBzVqXtteILdRWc0UZKrGp96Q12oFdoBN3 tt4xULxeC7rQ8+qiqH8vGu+w05UYP8iJ5RGjAmkgkzHFLuyhEUDna60ggivT8lY5 JnY6Qp6R5wQuIUGl8v8F5ZJzEW2YYgR8u2MhZ4OCbfo3IVBQNkvRt/XauFAFfxJV ONCtjft25pOjvsyhKiD683CD7zIN/+B8h74OQQ5Ow==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=GezxZS5Cd0ZjdIO0ngBeCTE6ko8CR EIzTXjpCR3tqiM=; b=IzKX4OyzAYy4Htt3zycU2IQHL/lvVCXghhWKnNwe6cd0/ EvD1Hj3dLL/89go2n0NzZA8uyXeCqKFiujYVyQS7RJfCN6+ran4h/YFPF9vQWv1r oVTUrBwOxqJpF8nArqHeutpvDfWc45V8yya4f5D3+3oO/NY3jPgOZxGinfiqmev9 79bQeG2Lwe/805sN7hXgVPxJPYeS98cOl+3788JBHuFVOChhvETxjTl1sVtjklPO /jSSo3BIO9I2y1TUCq2EOcC2BmJhnCxScdOsP80PHAXNFI4Xg6j2gmMFXPBjTS0V cc5bIonp9GTKiW5imAiX5ckcP5l2k+V36QvAkeR/Q==
- In-reply-to: <CAH+w=7YL7S-+QQD0-kLEFh=FFgLBSriEyHzbtL9cjqq_9u1U4Q@mail.gmail.com>
- 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: <CAH+w=7Zz4HMfB_RA5nHr_i_iwKvD=S0QOjcogc0Y0OYSXv0JXw@mail.gmail.com> <6935145d-785f-f2dd-d4f2-e7ea627e2bc3@eastlink.ca> <CAH+w=7ane3_cT75hyZYp_4Zd1aT1eeDbbW9CVpBTZjAhKFQ+Qw@mail.gmail.com> <1522604036.2902094.1322956328.767274EF@webmail.messagingengine.com> <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@xxxxxxxxxxxxxxxxxx> 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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author