commit | 5dad7bdc3bdad8e9934d45301d5a8c51e843cd7b | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Thu Jul 06 19:48:20 2017 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Thu Jul 06 19:48:20 2017 +0200 |
tree | db493d6ca6cabddcfe3e9a58f33ee712bd1584d4 | |
parent | 3234045d07c3fb2a9ef8afd02f821158317adbd3 [diff] [blame] |
hush: implement negative start in the ${v: -n[:m]} idiom Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/shell/hush_test/hush-vars/var_bash1a.right b/shell/hush_test/hush-vars/var_bash1a.right new file mode 100644 index 0000000..1965b5c --- /dev/null +++ b/shell/hush_test/hush-vars/var_bash1a.right
@@ -0,0 +1,6 @@ +parameter 'abcdef' +varoffset2 'cdef' +varoffset-2 'ef' +literal '2' 'cdef' +literal '-2' 'abcdef' +literal ' -2' 'ef'