1 # This test demonstrates that in unquoted $v, backslashes expand by this rule:
2 # \z -> \\\z; \<eol> -> \\<eol> (for any z, special or not),
3 # and subsequently globbing converts \\ to \ and treats \z as literal z
4 # even if it is a special char.
8 echo 'Expected' 'Actual'
9 v='\*'; echo 'Z\* :' Z$v
12 echo 'Z\* :' Z\\\* # NB! only this matches Z$v output
14 v='\z'; echo 'Z\z :' Z$v
19 v='\'; echo 'Z\ :' Z$v
22 v='*'; echo 'Z\f Zf :' Z$v