diff options
Diffstat (limited to 'shell/hush_test/hush-vars/var_bash5.tests')
-rwxr-xr-x | shell/hush_test/hush-vars/var_bash5.tests | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/var_bash5.tests b/shell/hush_test/hush-vars/var_bash5.tests new file mode 100755 index 000000000..7f482a554 --- /dev/null +++ b/shell/hush_test/hush-vars/var_bash5.tests @@ -0,0 +1,11 @@ +# This testcase checks whether slashes in ${v/a/b} are parsed before +# or after expansions + +v='a/b/c' +s='b/c' +r='e/f' +echo "${v/$s}" +echo "${v/$s/d}" +echo "${v/$s/$r}" + +echo Done: $? |