diff options
author | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2000-03-03 14:30:09 +0000 |
---|---|---|
committer | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2000-03-03 14:30:09 +0000 |
commit | aac7c0eb4239188bccf243acfe50d289de020d9f (patch) | |
tree | 1c982ede6ced78659ba7fa794c91394fb68679bd /helpers/PrintPath | |
parent | 2741d0056bbe6df5492908abe89d69989bc9e201 (diff) | |
download | libapr-aac7c0eb4239188bccf243acfe50d289de020d9f.tar.gz |
Allow scripts (that don't have a .exe extension) to be found by PrintPath
under OS/2.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59681 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'helpers/PrintPath')
-rwxr-xr-x | helpers/PrintPath | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/helpers/PrintPath b/helpers/PrintPath index 908d27400..68435f374 100755 --- a/helpers/PrintPath +++ b/helpers/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 |