zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: zsh-users@zsh.org
Subject: Re: whence output varies with dot vs. realpath in $PATH
Date: Mon, 31 Oct 2022 17:31:22 -0700	[thread overview]
Message-ID: <CAH+w=7bGBsYwAsESmZp0TzU-Khu7OtZV2sMewC+Kz69xdOz=KA@mail.gmail.com> (raw)
In-Reply-To: <77e57f37-7d6c-5ed4-5745-c424886bf16e@eastlink.ca>

On Mon, Oct 31, 2022 at 5:03 PM Ray Andrews <rayandrews@eastlink.ca> wrote:
>
> as to '-a' and '-m' they sure don't get along. I have a few examples
> where they seem to try to cancel each other.  Seems to me that -m is an
> expansion of -a

No.  -m means to find all the names (in any hash table) that match a
pattern.  -a means to show all the occurrences in $path of each name
(either literally without -m, or found in the command hash table by
-m).  -m happens first, and then -a searches the path.

> BTW, you know what would be sweet, is if: "rap is a shell function from
> rap" ... if there was the option of having that displayed with full
> path.

Whether a full path appears there depends on how the function was
defined.  The only way you get the output with "... from ..." but
without the full path is if you source the function from a file in the
current directory (e.g., "source rap").  Even autoloading the function
with "fpath=(.); autoload rap; rap" gets you the full path.


  reply	other threads:[~2022-11-01  0:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-31 13:30 Ray Andrews
2022-10-31 13:43 ` Roman Perepelitsa
2022-10-31 14:06   ` Ray Andrews
2022-10-31 14:10     ` Roman Perepelitsa
2022-10-31 14:32       ` Ray Andrews
2022-10-31 14:36         ` Roman Perepelitsa
2022-10-31 14:57           ` Ray Andrews
2022-10-31 21:18             ` Bart Schaefer
2022-10-31 22:26               ` Bart Schaefer
2022-10-31 22:59               ` Ray Andrews
2022-10-31 23:03                 ` Bart Schaefer
2022-10-31 23:17                   ` Ray Andrews
2022-10-31 23:21                     ` Bart Schaefer
2022-10-31 23:14                 ` Lawrence Velázquez
2022-10-31 23:21                   ` Ray Andrews
2022-10-31 23:38                     ` Bart Schaefer
2022-11-01  0:03                       ` Ray Andrews
2022-11-01  0:31                         ` Bart Schaefer [this message]
2022-11-01  0:55                           ` Ray Andrews
2022-11-01  1:08                             ` Bart Schaefer

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=7bGBsYwAsESmZp0TzU-Khu7OtZV2sMewC+Kz69xdOz=KA@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).