zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: bug: whence -wa / none / argv position
Date: Fri, 23 Jun 2023 18:55:08 -0700	[thread overview]
Message-ID: <CAH+w=7bDF=X222Uu0wBvyJ6V=nmRR+6BJf+pvdpnSkSsk6HAfw@mail.gmail.com> (raw)
In-Reply-To: <ZHGUPWCJjQFbTa2A@fullerene.field.pennock-tech.net>

On Fri, May 26, 2023 at 10:25 PM Phil Pennock
<zsh-workers+phil.pennock@spodhuis.org> wrote:
>
> Invoking `whence -wa` with multiple arguments, where one does not exist,
> has different results depending upon whether the non-existing one is
> first in the list or not.

Is it really this easy?

diff --git a/Src/builtin.c b/Src/builtin.c
index e4f356803..669a47092 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -4046,6 +4046,7 @@ bin_whence(char *nam, char **argv, Options ops, int func)
     /* Take arguments literally -- do not glob */
     queue_signals();
     for (; *argv; argv++) {
+    informed = 0;
     if (!OPT_ISSET(ops,'p') && !allmatched) {
         char *suf;


  reply	other threads:[~2023-06-24  1:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-27  5:25 Phil Pennock
2023-06-24  1:55 ` Bart Schaefer [this message]
2023-07-10 23:26   ` Phil Pennock

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=7bDF=X222Uu0wBvyJ6V=nmRR+6BJf+pvdpnSkSsk6HAfw@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@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).