pdksh not setting $? with exit status of commands

David Kramer david@thekramers.net
Thu Jan 20 17:07:00 GMT 2005


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/



More information about the Cygwin mailing list