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