Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [patch] "which"-builtin writes diagnostics to stdout
- X-seq: zsh-workers 36369
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [patch] "which"-builtin writes diagnostics to stdout
- Date: Tue, 01 Sep 2015 14:45:27 +0100
- In-reply-to: <CAH+w=7aNzRtsJcvGcfyYFPAiRtNY69imSN+oGrF7K7unD5aNcA@mail.gmail.com>
- 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
- Organization: Samsung Cambridge Solution Centre
- References: <20150830030614.GB18893@frozen.localdomain> <CAH+w=7aNzRtsJcvGcfyYFPAiRtNY69imSN+oGrF7K7unD5aNcA@mail.gmail.com>
On Sat, 29 Aug 2015 22:15:38 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Sat, Aug 29, 2015 at 8:06 PM, Timo Buhrmester <fstd.lkml@xxxxxxxxx> wrote:
> > When invoking the `which` builtin for something that does not exist, like:
> >
> > | % which doesnotexist
> > | doesnotexist not found
> >
> > the "doesnotexist not found" message goes to standard output, rather than standard error.
>
> Believe it or not, this is intentional, because the original "which"
> builtin from csh does that. Try it in tcsh, for example.
This is an obvious candidate for hiding behind one of the options like
CSH_JUNKIE_STUFF_THAT_NO_ONE_COULD_CONCEIVABLY_WANT_ANY_MORE on the
grounds of consistency --- it's hard to see how sending the error to
stder could make anything other than a script/function deliberately set
up to expect csh output any more confused --- though I'm not that set on
the option name.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author