ash: fix handling of ${VAR: -2}

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2016-07-25 03:56:00 +02:00
parent 0fb0045aa9
commit f8ddbe1ccc
3 changed files with 25 additions and 4 deletions

View File

@ -0,0 +1,6 @@
parameter 'abcdef'
varoffset2 'cdef'
varoffset-2 'ef'
literal '2' 'cdef'
literal '-2' 'abcdef'
literal ' -2' 'ef'