mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
Behaviour seems inconsistent
This commit is contained in:
parent
497f442d77
commit
e5952b3f43
4 changed files with 53 additions and 7 deletions
26
test.sh
26
test.sh
|
|
@ -1330,6 +1330,32 @@ expecting <<EOF
|
|||
hello
|
||||
hi
|
||||
0
|
||||
|
||||
when_run <<"EOF" "unquoting behaviour with wildcard"
|
||||
touch outfile
|
||||
export target="'out*'"
|
||||
echo $target
|
||||
ls
|
||||
EOF
|
||||
expecting <<EOF
|
||||
'out*'
|
||||
outfile
|
||||
EOF
|
||||
|
||||
when_run <<"EOF" "normal behaviour with wildcard before echo"
|
||||
export target=out*
|
||||
echo $target
|
||||
EOF
|
||||
expecting <<EOF
|
||||
outfile
|
||||
EOF
|
||||
|
||||
when_run <<"EOF" "normal behaviour with wildcard after variable expansion"
|
||||
export target="out*"
|
||||
echo $target
|
||||
EOF
|
||||
expecting <<EOF
|
||||
outfile
|
||||
EOF
|
||||
|
||||
finalize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue