Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[Bug] Builtin "which" prints errors to stdout instead of stderr
- X-seq: zsh-workers 41579
- From: "Laurent, Jean-Baptiste" <jbl@xxxxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: [Bug] Builtin "which" prints errors to stdout instead of stderr
- Date: Tue, 22 Aug 2017 08:58:09 +0000
- Accept-language: en-US
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Thread-index: AdMaiEa3p90lP5hnR0y1YixP118WKQ==
- Thread-topic: [Bug] Builtin "which" prints errors to stdout instead of stderr
Hi,
Zsh 5.3.1 error message < XXX not found > is printed to stdout instead of stderr.
Zsh 5.3.1 - 0 #> which ccache
ccache not found
Zsh 5.3.1 - 1 #> which ccache 2> /dev/null
Zsh 5.3.1 - 2 #> which which
This has been also tested with a fresh install of zsh (5.0.8)
Zsh 5.0.8 - 0 #> which ccache
/usr/bin/which: no ccache in (...)
Zsh 5.0.8 - 1 #> unalias which
Zsh 5.0.8 - 2 #> which which
which: shell built-in command
Zsh 5.0.8 - 3 #> which ccache
ccache not found
Zsh 5.0.8 - 4 #> which ccache 2> /dev/null
Zsh 5.0.8 - 5 #> which which
Messages sorted by:
Reverse Date,
Date,
Thread,
Author