This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pdksh not setting $? with exit status of commands


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]