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

Re: BUG: Shell builtin `which` prints non-existent commands to stdout



On Mon, 24 Sep 2018 10:00:31 +0200
Klaus Alexander Seistrup <klaus@xxxxxxxxxxx> wrote:
> TL;DR: When `which` does not find a command it prints the error to 
> standard output instead of standard error. Exit code is set correctly, 
> though, and error messages about ‘bad options’ are sent to standard 
> error as expected.

This is not a bug and has been discussed numerous times, e.g. the thread
that starts at.

http://www.zsh.org/mla/workers//2015/msg02253.html

(official zsh-workers message number 36330).

We definitely don't wish to change this now.

pws




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