Subject: Re: [PATCH] print errors to stderr
From: Oliver Kiddle <[email-masked]>
To: isabella parakiss <[email-masked]>
Cc: [email-masked]
Date: Wed, 22 Jun 2016 09:42:06 +0200
List-Id: Zsh Workers List <zsh-workers.zsh.org>

isabella parakiss wrote:
> Subject: [PATCH] print errors to stderr
> @@ -3633,8 +3633,8 @@ bin_whence(char *nam, char **argv, Options ops, int func)
> -		zputs(*argv, stdout);
> -		puts(wd ? ": none" : " not found");
> +		zputs(*argv, stderr);
> +		zputs(wd ? ": none" : " not found", stderr);

I think this behaviour is actually intentional. It is arguably not an
error - the whence command's purpose is to search for something and
report on whether it is found. So it doesn't rely on finding it. Also,
this is compatible with csh and tcsh - the which command was a csh thing
first.

Oliver