From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: "Laurent, Jean-Baptiste" <jbl@suneris.com>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: [Bug] Builtin "which" prints errors to stdout instead of stderr
Date: Tue, 22 Aug 2017 11:49:08 +0200 [thread overview]
Message-ID: <28357.1503395348@thecus.kiddle.eu> (raw)
In-Reply-To: <f72791edba9a4b52a30261f2267ffe12@FRVLZSRV045.ercom-net.local>
"Laurent, Jean-Baptiste" wrote:
>
> 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
I believe this is actually intentional for compatibility with csh. It is
arguably not an error but informational. This last came up in workers/38747.
The which external was traditionally a C-shell script. Still is on
Solaris. Recent Linux has it as a binary and does send it to stderr. On
FreeBSD, it is silent.
If this keeps coming up, perhaps it'd be easier just to change it.
Oliver
prev parent reply other threads:[~2017-08-22 13:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-22 8:58 Laurent, Jean-Baptiste
2017-08-22 9:49 ` Oliver Kiddle [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=28357.1503395348@thecus.kiddle.eu \
--to=okiddle@yahoo.co.uk \
--cc=jbl@suneris.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).