Last change
on this file since 3331 was 2725, checked in by Bruno Cornec, 14 years ago |
- Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
|
-
Property svn:executable
set to
*
|
File size:
459 bytes
|
Line | |
---|
1 | # This testcase checks whether slashes in ${v/a/b} are parsed before
|
---|
2 | # or after expansions
|
---|
3 |
|
---|
4 | v='a/b/c'
|
---|
5 | s='b/c'
|
---|
6 | r='e/f'
|
---|
7 | echo "1 ${v/$s}"
|
---|
8 | echo "2 ${v/$s/d}"
|
---|
9 | echo "3 ${v/$s/$r}"
|
---|
10 |
|
---|
11 | v='a\b\c'
|
---|
12 | s='b\\c'
|
---|
13 | r='e\f'
|
---|
14 | echo "4 ${v/$s}"
|
---|
15 | echo "5 ${v/$s/d}"
|
---|
16 | echo "6 ${v/$s/$r}"
|
---|
17 |
|
---|
18 | v='a\\b\\c'
|
---|
19 | s='b\\\\c'
|
---|
20 | r='e\\f'
|
---|
21 | echo "7 ${v/$s}"
|
---|
22 | echo "8 ${v/$s/d}"
|
---|
23 | echo "9 ${v/$s/$r}"
|
---|
24 |
|
---|
25 | v='a-$a-\t-\\-\"-\`-\--\z-\*-\?-b'
|
---|
26 | s='-$a-\\t-\\\\-\\"-\\`-\\--\\z-\\\*-\\\?-'
|
---|
27 | echo "a ${v/$s}"
|
---|
28 |
|
---|
29 | echo Done: $?
|
---|
Note:
See
TracBrowser
for help on using the repository browser.