Strange behaviour in the which command.

Michel Van den Bergh vdbergh@luc.ac.be
Sun Dec 26 11:27:00 GMT 2004


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?

Regards,
Michel

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