mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
fix(builtin/export): empty arguments were not identified as invalid identifiers
This commit is contained in:
parent
6b2e15d301
commit
efaf4708f9
2 changed files with 18 additions and 3 deletions
8
test.sh
8
test.sh
|
|
@ -747,4 +747,12 @@ expecting <<EOF
|
|||
$(env | grep HOME)
|
||||
EOF
|
||||
|
||||
when_run <<EOF "export with empty arguments"
|
||||
export "" ""
|
||||
EOF
|
||||
expecting <<"EOF"
|
||||
minishell: export: `': not a valid identifier
|
||||
minishell: export: `': not a valid identifier
|
||||
EOF
|
||||
|
||||
finalize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue