From bdab4825519f56ccb518c73919245e12bb9d334e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 15 Jan 2024 16:05:00 +0100 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ tests/init.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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}" ;; -- 2.39.5