1
0
mirror of https://passt.top/passt synced 2024-06-29 22:42:46 +00:00

test/lib: Restore IFS while executing directives in def blocks

If we don't, guest command dispatch will fail altogether, given that
we use cat(1) on the enter file, which contains spaces.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-09-20 21:56:49 +02:00
parent 4a1b675278
commit 119bb265a3

View File

@ -312,7 +312,7 @@ test_one_line() {
IFS='
'
for __def_line in ${__def_body}; do
IFS= test_one_line "${__def_line}"
IFS="${__ifs}" test_one_line "${__def_line}"
done
IFS="${__ifs}"
fi