projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Start 1.33.0 development cycle
[oweals/busybox.git]
/
shell
/
hush_test
/
hush-vars
/
var_bash5.tests
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: $?