mirror of
https://passt.top/passt
synced 2025-03-20 07:58:53 +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:
parent
4a1b675278
commit
119bb265a3
@ -312,7 +312,7 @@ test_one_line() {
|
|||||||
IFS='
|
IFS='
|
||||||
'
|
'
|
||||||
for __def_line in ${__def_body}; do
|
for __def_line in ${__def_body}; do
|
||||||
IFS= test_one_line "${__def_line}"
|
IFS="${__ifs}" test_one_line "${__def_line}"
|
||||||
done
|
done
|
||||||
IFS="${__ifs}"
|
IFS="${__ifs}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user