From 29187f08dacb0f88ffdff3bb527100019aa396bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gu=C3=A9len?= Date: Fri, 25 Apr 2025 15:01:54 +0200 Subject: [PATCH] tests(export/echo): ensure correct behaviour for single quotes in VAR --- test.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test.sh b/test.sh index 3da9c00..2fcc11b 100755 --- a/test.sh +++ b/test.sh @@ -1129,4 +1129,14 @@ expecting <<"EOF" hello EOF +when_run <<"EOF" "echo with simple quotes in variables" +export VAR=" hello' 'world " +echo "-$VAR-" +echo -$VAR- +EOF +expecting <<"EOF" +- hello' 'world - +- hello' 'world - +EOF + finalize