From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 5/7] test/lib: Restore IFS while executing directives in def blocks Date: Wed, 21 Sep 2022 22:55:05 +0200 Message-ID: <20220921205507.2742203-6-sbrivio@redhat.com> In-Reply-To: <20220921205507.2742203-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9120465062653629759==" --===============9120465062653629759== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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(-) 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 -- 2.35.1 --===============9120465062653629759==--