Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [patch] "which"-builtin writes diagnostics to stdout

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
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.


Messages sorted by: Reverse Date, Date, Thread, Author