From 119bb265a3c641f21d6c5f0b65037f654903ea57 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 20 Sep 2022 21:56:49 +0200 Subject: 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 --- test/lib/test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/lib') diff --git a/test/lib/test b/test/lib/test index 3ad178f..a9ffe83 100755 --- a/test/lib/test +++ b/test/lib/test @@ -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 -- cgit v1.2.3