Last change
on this file since 3840 was 3621, checked in by Bruno Cornec, 8 years ago |
New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.
|
-
Property svn:executable
set to
*
|
File size:
747 bytes
|
Line | |
---|
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.
|
---|
5 |
|
---|
6 | >'Zf'
|
---|
7 | >'Z\f'
|
---|
8 | echo 'Expected' 'Actual'
|
---|
9 | v='\*'; echo 'Z\* :' Z$v # ash is buggy here: prints 'Z\f'
|
---|
10 | echo 'Z* :' Z\*
|
---|
11 | echo 'Z\f :' Z\\*
|
---|
12 | echo 'Z\* :' Z\\\* # NB! only this matches Z$v output
|
---|
13 | echo
|
---|
14 | v='\z'; echo 'Z\z :' Z$v
|
---|
15 | echo 'Zz :' Z\z
|
---|
16 | echo 'Z\z :' Z\\z
|
---|
17 | echo 'Z\z :' Z\\\z
|
---|
18 | echo
|
---|
19 | v='\'; echo 'Z\ :' Z$v
|
---|
20 | echo 'Z\ :' Z\\
|
---|
21 | echo
|
---|
22 | v='*'; echo 'Z\f Zf :' Z$v
|
---|
23 | echo 'Z\f Zf :' Z*
|
---|
24 | echo
|
---|
25 |
|
---|
26 | rm 'Z\f' 'Zf'
|
---|
27 | echo Done: $?
|
---|
Note:
See
TracBrowser
for help on using the repository browser.