Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: BUG: Shell builtin `which` prints non-existent commands to stdout
- X-seq: zsh-workers 43524
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Klaus Alexander Seistrup <klaus@xxxxxxxxxxx>, Zsh Workers <zsh-workers@xxxxxxx>
- Subject: Re: BUG: Shell builtin `which` prints non-existent commands to stdout
- Date: Mon, 24 Sep 2018 11:22:18 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180924102221euoutp02df34c38e50d7607087cbb2d64d2cb3ea~XTuSOUoX32614726147euoutp02X
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1537784541; bh=Sv+FRGE8YepLQq1hUc4gonjsta/YyJyr8lHbiuSfnYk=; h=Date:From:To:Subject:In-Reply-To:References:From; b=hPkHY+tZ14F2MuurwZ2/Fs8NYZCdr88N4zPg49mVfQ0qbCwb1SoRgfrdiHqGI/t5X cs/MCqe24ec+oY8FrM67MxP4nN1u6fPMF3FEgnMIAF81haeS4++svvsj2IqC48PbTW 6AT+CR/66pc9ixvM3LP/ms4d8UdyPM83/xnkUS8U=
- In-reply-to: <20180924080031.ee7lqmthxpmvqaal@klaus.seistrup.dk>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: SCSC
- References: <CGME20180924080113epcas4p4f8f89aa03a2cebc5030fd45dca0f6e84@epcas4p4.samsung.com> <20180924080031.ee7lqmthxpmvqaal@klaus.seistrup.dk>
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