if { test -x "$dir/$1" && test -f "$dir/$1"; } || { test -x "$dir/$1.exe" && test -f "$dir/$1.exe"; }; then
This seems sensible. I can't actually test it, since I don't have either Cygwin or DJPP, but at least it is symmetric. Stepan, do you have an objection to it? Thanks, k -- 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/