This commit is contained in:
Bonnie I-Man Ng 2023-03-15 10:02:31 +00:00
parent 29902039d8
commit 3e6bbf7c20

View File

@ -171,7 +171,7 @@ echo '$foo'
# single quotes within double quotes will not cancel expansion and will be part of the output # single quotes within double quotes will not cancel expansion and will be part of the output
echo "'$foo'" echo "'$foo'"
# 'bar' # 'bar'
# doubled single quotes act as double quotes making variables expand # doubled single quotes act as if there are no quotes at all
echo ''$foo'' echo ''$foo''
# bar # bar
``` ```