Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: David Kramer <david@thekramers.net>
Subject: Re: pdksh not setting $? with exit status of commands
Date: Thu, 20 Jan 2005 15:17:56 +0000 (UTC)
Lines: 22
Message-ID: <loom.20050120T161459-97@post.gmane.org>
References: <loom.20050119T161314-452@post.gmane.org> <Pine.GSO.4.61.0501191509070.20608@slinky.cs.nyu.edu> <loom.20050119T220318-4@post.gmane.org> <Pine.GSO.4.61.0501191821490.21835@slinky.cs.nyu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: main.gmane.org
User-Agent: Loom/3.14 (http://gmane.org/)
X-Loom-IP: 68.167.15.123 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3)
X-IsSubscribed: yes

Igor Pechtchanski <pechtcha <at> cs.nyu.edu> writes:
> > Cygwin Configuration Diagnostics
> > Current System Time: Wed Jan 19 16:13:42 2005
> >
> > Windows XP Professional Ver 5.1 Build 2600 Service Pack 1
> > [snip]
> > Found: C:\cygwin\bin\grep.exe
> > Found: c:\SFU\common\grep.exe
> > Warning: C:\cygwin\bin\grep.exe hides c:\SFU\common\grep.exe
> 
> Ah, I think this may be your problem.  Are you *sure* you're using the
> Cygwin grep?  In general, mixing MS SFU and Cygwin in the PATH is not a
> good idea.
> 
> Try explicitly using /bin/grep, i.e.,

Guilty as charged.  That was it.  Thank you.
I did one better and uninstalled MS SFU, which is about what it deserves.
Now it works as preditcted.

Thank you for the help, and for the clue-by-4 on the diagnostic tool that 
uncovered the problem.


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

