tests(export/echo): ensure correct behaviour for single quotes in VAR

This commit is contained in:
Jérôme Guélen 2025-04-25 15:01:54 +02:00
parent 08baee41b6
commit 29187f08da
No known key found for this signature in database

10
test.sh
View file

@ -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