Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] print errors to stderr



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



Messages sorted by: Reverse Date, Date, Thread, Author