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 To: cygwin AT cygwin DOT com From: David Kramer Subject: Re: pdksh not setting $? with exit status of commands Date: Thu, 20 Jan 2005 15:17:56 +0000 (UTC) Lines: 22 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT 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 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/