From 5fabec58d57fcdf85ac20964cff00b83cfcb8033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Fri, 18 Apr 2025 10:19:57 +0200 Subject: [PATCH] test(builtin/export): ensure that identifiers are correctly accepted or rejected --- test.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/test.sh b/test.sh index 685b9c3..95bc8ad 100755 --- a/test.sh +++ b/test.sh @@ -770,4 +770,29 @@ minishell: export: `0': not a valid identifier 1 EOF +when_run <<"EOF" "export with identifiers containing numbers" +export VAR1=this VAR2=should VAR3=work VAR4=no VAR5="problem!" +echo $VAR1 $VAR2 $VAR3 $VAR4 $VAR5 +EOF +expecting <