ash: add another ${v/a/b} test we currently fail
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
parent
25b4755302
commit
f7a8433535
4
shell/ash_test/ash-vars/var_bash5.right
Normal file
4
shell/ash_test/ash-vars/var_bash5.right
Normal file
@ -0,0 +1,4 @@
|
||||
a/
|
||||
a/d
|
||||
a/e/f
|
||||
Done: 0
|
11
shell/ash_test/ash-vars/var_bash5.tests
Executable file
11
shell/ash_test/ash-vars/var_bash5.tests
Executable file
@ -0,0 +1,11 @@
|
||||
# This testcase checks whether slashes in ${v/a/b} are parsed before or after expansions
|
||||
# in a part
|
||||
|
||||
v='a/b/c'
|
||||
s='b/c'
|
||||
r='e/f'
|
||||
echo "${v/$s}"
|
||||
echo "${v/$s/d}"
|
||||
echo "${v/$s/$r}"
|
||||
|
||||
echo Done: $?
|
Loading…
Reference in New Issue
Block a user