From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23269 invoked by alias); 1 Sep 2015 13:55:39 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36369 Received: (qmail 16516 invoked from network); 1 Sep 2015 13:55:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-AuditID: cbfec7f4-f79c56d0000012ee-b6-55e5abfb1443 Date: Tue, 01 Sep 2015 14:45:27 +0100 From: Peter Stephenson To: Zsh hackers list Subject: Re: [patch] "which"-builtin writes diagnostics to stdout Message-id: <20150901144527.3ee45953@pwslap01u.europe.root.pri> In-reply-to: References: <20150830030614.GB18893@frozen.localdomain> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrELMWRmVeSWpSXmKPExsVy+t/xy7q/Vz8NNXh9i8/iYPNDJgdGj1UH PzAFMEZx2aSk5mSWpRbp2yVwZbx4NomxYAl7xfcbMg2Mn1m7GDk5JARMJN5sXMIIYYtJXLi3 ng3EFhJYyigxY0J2FyMXkD2DSeLvlk4mCGcro8TxSwtYQKpYBFQlOhbPYwex2QQMJaZumg02 SURAS2LHyZNMILawgKPEnJtPwabyCthLfO28DdbLKRAssez/HGaIbXUSN5vfgtXzC+hLXP37 iQniInuJmVfOMEL0Ckr8mHwPrJcZaP7mbU2sELa8xOY1b6HmqEvcuLubfQKj0CwkLbOQtMxC 0rKAkXkVo2hqaXJBcVJ6rqFecWJucWleul5yfu4mRkjIftnBuPiY1SFGAQ5GJR7ejo9PQoVY E8uKK3MPMUpwMCuJ8L5f8DRUiDclsbIqtSg/vqg0J7X4EKM0B4uSOO/cXe9DhATSE0tSs1NT C1KLYLJMHJxSDYxJsxrXcf6oSAhhfOI/g7MhucrUmfUP+6l8VfFjn53ezOK4ujL/16W960Wv 2b5m+y73PmPirgmmFhabjic2PT558sUSu/pLN2J3fm15PEGKJevpqi/zvl7/pG4X+jR0z0eG zVqPE2bWTqo/wRL2vT9vF9vp9H6fRToRVXViazakBfXecTTbeuCrEktxRqKhFnNRcSIAzsi+ mVUCAAA= On Sat, 29 Aug 2015 22:15:38 -0700 Bart Schaefer wrote: > On Sat, Aug 29, 2015 at 8:06 PM, Timo Buhrmester 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