From: Brian Havard Date: Fri, 3 Mar 2000 14:30:09 +0000 (+0000) Subject: Allow scripts (that don't have a .exe extension) to be found by PrintPath X-Git-Tag: APACHE_2_0_ALPHA~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38333a2aca5e794a5c4b0975d058c74399cc3969;p=apache Allow scripts (that don't have a .exe extension) to be found by PrintPath under OS/2. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84706 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/PrintPath b/build/PrintPath index 908d274008..68435f3744 100755 --- a/build/PrintPath +++ b/build/PrintPath @@ -99,6 +99,17 @@ do fi exit 0 fi + +# Next try without extension (if one was used above) + if [ "x$ext" != "x" ]; then + if [ $test_exec_flag $path/${program} ] && \ + [ ! -d $path/${program} ]; then + if [ "x$echo" = "xyes" ]; then + echo $path/${program} + fi + exit 0 + fi + fi done done exit 1