From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17849 invoked by alias); 22 Aug 2017 09:04:42 -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: 41579 Received: (qmail 21921 invoked by uid 1010); 22 Aug 2017 09:04:42 -0000 X-Qmail-Scanner-Diagnostics: from mx01-out.cloud.vadesecure.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(217.74.103.251):SA:0(-4.7/5.0):. Processed in 1.906122 secs); 22 Aug 2017 09:04:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: jbl@suneris.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | From: "Laurent, Jean-Baptiste" To: "zsh-workers@zsh.org" Subject: [Bug] Builtin "which" prints errors to stdout instead of stderr Thread-Topic: [Bug] Builtin "which" prints errors to stdout instead of stderr Thread-Index: AdMaiEa3p90lP5hnR0y1YixP118WKQ== Date: Tue, 22 Aug 2017 08:58:09 +0000 Message-ID: Accept-Language: en-US Content-Language: fr-FR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.1.5.51] Content-Type: multipart/alternative; boundary="_000_f72791edba9a4b52a30261f2267ffe12FRVLZSRV045ercomnetloca_" MIME-Version: 1.0 X-VRC-SPAM-STATUS: 0,0,gggruggvucftvghtrhhoucdtuddrfeelkedrudduuddgtdelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftvedpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuthffkfhitgggsegrtdhjredttddvnecuhfhrohhmpedfnfgruhhrvghnthdpucflvggrnhdquegrphhtihhsthgvfdcuoehjsghlsehsuhhnvghrihhsrdgtohhmqeenucfkphepkeelrddvhedurdehvddrieegpddutddruddrhedrhedunecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhmrgigmhhsghhsihiivgepuddtgeekheejiedphhgvlhhopehmrghilhdrughomhgrihhnrdhlohgtrghlpdhinhgvthepkeelrddvhedurdehvddrieegpdhmrghilhhfrhhomhepjhgslhesshhunhgvrhhishdrtghomhdprhgtphhtthhopeiishhhqdifohhrkhgvrhhsseiishhhrdhorhhg X-VRSPAM-STATE: legit X-VRC-POLICY-STATUS: t=1,a=1,l=0 --_000_f72791edba9a4b52a30261f2267ffe12FRVLZSRV045ercomnetloca_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Zsh 5.3.1 error message < XXX not found > is printed to stdout instead of s= tderr. Zsh 5.3.1 - 0 #> which ccache ccache not found Zsh 5.3.1 - 1 #> which ccache 2> /dev/null Zsh 5.3.1 - 2 #> which which This has been also tested with a fresh install of zsh (5.0.8) Zsh 5.0.8 - 0 #> which ccache /usr/bin/which: no ccache in (...) Zsh 5.0.8 - 1 #> unalias which Zsh 5.0.8 - 2 #> which which which: shell built-in command Zsh 5.0.8 - 3 #> which ccache ccache not found Zsh 5.0.8 - 4 #> which ccache 2> /dev/null Zsh 5.0.8 - 5 #> which which --_000_f72791edba9a4b52a30261f2267ffe12FRVLZSRV045ercomnetloca_--