From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43 invoked by alias); 1 Sep 2015 06:04:37 -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: 36356 Received: (qmail 9057 invoked from network); 1 Sep 2015 06:04:36 -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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:cc:mime-version:content-type; bh=AYkI7Lo6OKxblz6m+/zxpI0dXHVHwcgIsCOUtTkBrkk=; b=L/1cDd3jHch6vjGfhMSnY7oMnbtraRp2x6hoqfch1IagLcc0rEFOE0hugtJGm1G5jV VyBb/CvLy8c0tfqz+wwisA3WJXlrRMG6nmBcTRUgm7RFoIFfHAIDQGJVYtn7jRE52h4W GW61pOndZttAHJQIF5BhF4JPLwW15QaxfD9czL5etEz8c8UQMOy881bv1I6l/vmABFOM L3ObUfCIGLlhD7FTM8sNDDrz7BcSLtTN9D2m1G+TFA9MHA8/bJg2iE4W/KElHR+l928G 8NThfzNqspKixRK/I+R0ddIBEeMjITjFbRe3foJtYHwYKxrPOGhFE/lSXutOucgYtJML V6PA== X-Gm-Message-State: ALoCoQk3SFem6av1J9csOz2YOLc6HM2Pwcr5Puhgo+cY5cfb7lWXJjDgDwpPPvztYcRH+zmLlZOG X-Received: by 10.202.102.136 with SMTP id m8mr452514oik.30.1441087474646; Mon, 31 Aug 2015 23:04:34 -0700 (PDT) From: Bart Schaefer Message-Id: <150831230431.ZM894@torch.brasslantern.com> Date: Mon, 31 Aug 2015 23:04:31 -0700 In-Reply-To: <20150830052603.GE18893@frozen.localdomain> Comments: In reply to Timo Buhrmester "Re: [patch] "which"-builtin writes diagnostics to stdout" (Aug 30, 7:26am) References: <20150830030614.GB18893@frozen.localdomain> <20150830052603.GE18893@frozen.localdomain> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh hackers list Subject: Re: [patch] "which"-builtin writes diagnostics to stdout Cc: Timo Buhrmester MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 30, 7:26am, Timo Buhrmester wrote: } Subject: Re: [patch] "which"-builtin writes diagnostics to stdout } } > > | % which doesnotexist } > > | doesnotexist not found } > > } > > the "doesnotexist not found" message goes to standard output, } > > rather than standard error. } } Out of curiosity, what reason would zsh (being more bourne-ish than } csh-ish, as far as I can tell) have to maintain this particular csh } glitch rather than fixing it? What makes you think it's a glitch? I.e., "not found" here is not an error message! It is the answer to the question you asked, and you asked for the answer in csh format ("which" is "whence -c"). If you don't want csh behavior, you should be using "whence" directly so that you can omit the "-c" option.