From d3fa4e2d3025b4feaf940e6fceddeb23a51a9edb Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 17 Nov 2003 08:52:30 +0000 Subject: [PATCH] Require not only that `perl' have the executable bit set, but also that it is not a directory. --- bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap b/bootstrap index 132cbc13..130fa8a3 100755 --- a/bootstrap +++ b/bootstrap @@ -40,7 +40,7 @@ if test -z "$PERL"; then for dir in $PATH; do IFS=$save_IFS test -z "$dir" && dir=. - if test -x "$dir/perl"; then + if test -x "$dir/perl" && test ! -d "$dir/perl"; then PERL="$dir/perl" break fi -- 2.43.5