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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue