Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bug: whence -wa / none / argv position
On Fri, May 26, 2023 at 10:25 PM Phil Pennock
<zsh-workers+phil.pennock@xxxxxxxxxxxx> 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;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author