From: Bruno Haible Date: Mon, 15 Jan 2024 14:50:52 +0000 (+0100) Subject: test-framework-sh: Improve portability to native Windows and OS/2. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=627fe7c2ec296f72585b97eab081f2b5a2ed3c2a;p=gnulib.git test-framework-sh: Improve portability to native Windows and OS/2. Reported by KO Myung-Hun in . * tests/init.sh (setup_): Set IFS, like in Autoconf's _AS_PATH_WALK and in build-aux/relocatable.sh.in. --- diff --git a/ChangeLog b/ChangeLog index 48e6ff0817..74505f2e70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +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_): Set IFS, like in Autoconf's _AS_PATH_WALK and + in build-aux/relocatable.sh.in. + 2024-01-12 Bruno Haible jit/cache tests: Fix link error. diff --git a/tests/init.sh b/tests/init.sh index aef5eea808..d8889e858b 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -434,11 +434,11 @@ setup_ () # Remove relative and non-accessible directories from PATH, including '.' # and Zero-length entries. - saved_IFS="$IFS" - IFS=: + saved_IFS="$IFS"; IFS="$PATH_SEPARATOR" new_PATH= sep_= for dir in $PATH; do + IFS="$saved_IFS" case "$dir" in /*) test -d "$dir/." || continue new_PATH="${new_PATH}${sep_}${dir}"