zsh-workers
 help / color / mirror / code / Atom feed
From: "Laurent, Jean-Baptiste" <jbl@suneris.com>
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: [Bug] Builtin "which" prints errors to stdout instead of stderr
Date: Tue, 22 Aug 2017 08:58:09 +0000	[thread overview]
Message-ID: <f72791edba9a4b52a30261f2267ffe12@FRVLZSRV045.ercom-net.local> (raw)

[-- Attachment #1: Type: text/plain, Size: 563 bytes --]

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


             reply	other threads:[~2017-08-22  9:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-22  8:58 Laurent, Jean-Baptiste [this message]
2017-08-22  9:49 ` Oliver Kiddle

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=f72791edba9a4b52a30261f2267ffe12@FRVLZSRV045.ercom-net.local \
    --to=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).