summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars/var_bash1a.right
diff options
context:
space:
mode:
authorDenys Vlasenko2017-07-06 19:48:20 +0200
committerDenys Vlasenko2017-07-06 19:48:20 +0200
commit5dad7bdc3bdad8e9934d45301d5a8c51e843cd7b (patch)
treedb493d6ca6cabddcfe3e9a58f33ee712bd1584d4 /shell/hush_test/hush-vars/var_bash1a.right
parent3234045d07c3fb2a9ef8afd02f821158317adbd3 (diff)
downloadbusybox-5dad7bdc3bdad8e9934d45301d5a8c51e843cd7b.zip
busybox-5dad7bdc3bdad8e9934d45301d5a8c51e843cd7b.tar.gz
hush: implement negative start in the ${v: -n[:m]} idiom
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-vars/var_bash1a.right')
-rw-r--r--shell/hush_test/hush-vars/var_bash1a.right6
1 files changed, 6 insertions, 0 deletions
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'