From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: 'whence' question
Date: Thu, 06 Nov 2014 15:15:27 -0800 [thread overview]
Message-ID: <545C010F.8030109@eastlink.ca> (raw)
In-Reply-To: <CAH+w=7b6kFCPnxJkJRvFqKCQPrK6xv8Avr2LOU5jb-jvsVYpWg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1114 bytes --]
On 11/06/2014 01:53 PM, Bart Schaefer wrote:
>
> A "regular glob" and a pattern aren't significantly different, but for
> example you can't use (most) glob qualifiers in a pattern, and the meaning
> of "/" is very different. Note that "whence" is not a file search tool;
> scanning a hash table of alias names with a glob comparing file type or
> modification time would make no sense.
Quite so. I'm limiting my thinking to files.
>
> Interesting, it worked very nicely for me even as far back as zsh-4.2.6 on
> an ancient virtual machine:
>
> % whence -vsa ${(k)commands[(I)zsh*]}
Ooops, I thought I had to replace 'commands' with (in this case) 'zsh*'.
... works fine Bart. (But really, shouldn't it be a bit simpler?).
$ whence -vsa ${(k)commands[(I)zsh*]}
zsh is /usr/local/bin/zsh -> /usr/local/bin/zsh-test2-orig-rebuild
zsh is /usr/bin/zsh -> /usr/local/bin/zsh-test2-orig-rebuild
zsh is /bin/zsh -> /usr/local/bin/zsh-test2-orig-rebuild
zsh-ok is /usr/local/bin/zsh-ok
zsh-test1 is /usr/local/bin/zsh-test1
zsh-test2-orig-rebuild is /usr/local/bin/zsh-test2-orig-rebuild
next prev parent reply other threads:[~2014-11-06 22:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-05 18:33 Ray Andrews
2014-11-05 17:49 ` Oliver Kiddle
2014-11-05 18:00 ` Peter Stephenson
2014-11-06 4:43 ` Bart Schaefer
2014-11-06 21:45 ` Ray Andrews
2014-11-06 21:53 ` Bart Schaefer
2014-11-06 23:15 ` Ray Andrews [this message]
2014-11-06 22:54 ` Bart Schaefer
2014-11-05 19:15 ` Ray Andrews
2014-11-05 17:50 ` Peter Stephenson
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=545C010F.8030109@eastlink.ca \
--to=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).