Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 26 Dec 2004 13:03:14 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Strange behaviour in the which command. Message-ID: <20041226120314.GB20048@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <41CEA002 DOT 7080504 AT luc DOT ac DOT be> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41CEA002.7080504@luc.ac.be> User-Agent: Mutt/1.4.2i On Dec 26 12:26, Michel Van den Bergh wrote: > Hi, > > I am running a recent version of Cygwin. > > Problem: the command 'which' seems to return succesfully when it shouldn't. > > When I do > > which programthatdoesnotexist > echo $? > > I get the value 0. > > Can somebody confirm this? Is this a bug? If so how to fix it? Confirmed. I'll upload a fixed version of which soon. Thanks for the report, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/