diff --git a/test.sh b/test.sh index 2fcc11b..65250f4 100755 --- a/test.sh +++ b/test.sh @@ -1139,4 +1139,31 @@ expecting <<"EOF" - hello' 'world - EOF +when_run <<"EOF" "previous variable value in export" +export VAR=hello +export VAR=" $VAR and goodbye" +echo $VAR | cat -e +EOF +expecting <