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 43525
- 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:25:44 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180924102547euoutp02b0ce528a4e16cf0001b022ee6d7297a2~XTxSQWJnY2697226972euoutp02d
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1537784747; bh=iRXfjAIpVF5ATqlRSOvOR7UecJhR0QgXh8f3HqymQHw=; h=Date:From:To:Subject:In-Reply-To:References:From; b=aeI5UjtOniAz37sDUrFDobUEU15mgLcmf1XQ4YCe5NALza1YLGga0Uxg15JPxuz7F a7pVW3vqmLV9j5PvTD3RyPxRiWpuu17qpdGMRgIh4p+xnGvH0depq0ssVHuUUDpR1N ic1bMEEOF3FK7iRWP4EvFIHjJ4NfnqyqXU8IgZiU=
- In-reply-to: <20180924112218.7bac7f2c@camnpupstephen.cam.scsc.local>
- 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> <20180924112218.7bac7f2c@camnpupstephen.cam.scsc.local>
On Mon, 24 Sep 2018 11:22:18 +0100
Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
> 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.
(Having said that, I don't really care about things pushed
behind POSIX_BUILTINS... Despite previous suggestions, I don't
think changing default zsh behaviour at this stage is the right
way out. I buy Bart's argument that expecting which to have
no output is a bit weird.)
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author