From: Bruno Haible Date: Mon, 15 Jan 2024 15:05:00 +0000 (+0100) Subject: test-framework-sh: Improve portability to native Windows and OS/2. X-Git-Tag: v1.0~520 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=bdab4825519f56ccb518c73919245e12bb9d334e;p=gnulib.git test-framework-sh: Improve portability to native Windows and OS/2. Reported by KO Myung-Hun in . * tests/init.sh (setup_): Test for an absolute directory name like Autoconf does. --- diff --git a/ChangeLog b/ChangeLog index c43af9729d..564a5c9a83 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2024-01-15 Bruno Haible + test-framework-sh: Improve portability to native Windows and OS/2. + Reported by KO Myung-Hun in + . + * tests/init.sh (setup_): Test for an absolute directory name like + Autoconf does. + test-framework-sh: Improve portability to native Windows and OS/2. Reported by KO Myung-Hun in . diff --git a/tests/init.sh b/tests/init.sh index 98c97a9028..05b35cad98 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -439,7 +439,7 @@ setup_ () for dir in $PATH; do IFS="$save_IFS" case "$dir" in - /*) + [\\/]* | ?:[\\/]*) test -d "$dir/." || continue new_PATH="${new_PATH}${new_PATH:+$PATH_SEPARATOR}${dir}" ;;