From 8bb678f7667568458a575d4aa9e4eaaa25dc41a9 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 d56b255ff4..b7d58e6b67 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 b8a400cff1..c5ec5cfd58 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -439,7 +439,7 @@ setup_ () for dir in $PATH; do IFS="$saved_IFS" case "$dir" in - /*) + [\\/]* | ?:[\\/]*) test -d "$dir/." || continue new_PATH="${new_PATH}${new_PATH:+$PATH_SEPARATOR}${dir}" ;; -- 2.39.5