diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash_test/ash-vars/var_bash5.right | 4 | ||||
-rwxr-xr-x | shell/ash_test/ash-vars/var_bash5.tests | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/shell/ash_test/ash-vars/var_bash5.right b/shell/ash_test/ash-vars/var_bash5.right new file mode 100644 index 000000000..278ed3228 --- /dev/null +++ b/shell/ash_test/ash-vars/var_bash5.right | |||
@@ -0,0 +1,4 @@ | |||
1 | a/ | ||
2 | a/d | ||
3 | a/e/f | ||
4 | Done: 0 | ||
diff --git a/shell/ash_test/ash-vars/var_bash5.tests b/shell/ash_test/ash-vars/var_bash5.tests new file mode 100755 index 000000000..3f49321e1 --- /dev/null +++ b/shell/ash_test/ash-vars/var_bash5.tests | |||
@@ -0,0 +1,11 @@ | |||
1 | # This testcase checks whether slashes in ${v/a/b} are parsed before or after expansions | ||
2 | # in a part | ||
3 | |||
4 | v='a/b/c' | ||
5 | s='b/c' | ||
6 | r='e/f' | ||
7 | echo "${v/$s}" | ||
8 | echo "${v/$s/d}" | ||
9 | echo "${v/$s/$r}" | ||
10 | |||
11 | echo Done: $? | ||