>From 13152ccfd0db839d0f02afce74074a35e1927276 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 15 Jan 2024 15:50:52 +0100 Subject: [PATCH 1/3] 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. --- ChangeLog | 8 ++++++++ tests/init.sh | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index bc6a28c09f..e0788e2d74 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..7d7b186451 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="$save_IFS" case "$dir" in /*) test -d "$dir/." || continue new_PATH="${new_PATH}${sep_}${dir}" -- 2.34.1