From a040ad561389f96f48d3c39aa080cf81e7c1efe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Fri, 25 Apr 2025 14:51:20 +0200 Subject: [PATCH] tests(export): ensure previous value of variable works correctly --- test.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) 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 <