mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
tests(export/echo): ensure correct behaviour for single quotes in VAR
This commit is contained in:
parent
08baee41b6
commit
29187f08da
1 changed files with 10 additions and 0 deletions
10
test.sh
10
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue