Behaviour seems inconsistent

This commit is contained in:
Jérôme Guélen 2025-04-26 15:53:34 +02:00
parent 497f442d77
commit e5952b3f43
No known key found for this signature in database
4 changed files with 53 additions and 7 deletions

26
test.sh
View file

@ -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