tests-always-included / mo

Mustache templates in pure bash
Other
563 stars 67 forks source link

Negative indices for substrings are not allowed #2

Closed fidian closed 9 years ago

fidian commented 9 years ago

Older versions of bash don't allow ${STRING:0:-1} syntax. See https://gist.github.com/rk295/a2a48c3b0f8d753df101

fidian commented 9 years ago

Adding @rk295 to this issue so he knows when it gets resolved.

rk295 commented 9 years ago

Bash 4.2 only according to http://tldp.org/LDP/abs/html/bashver4.html#NEGOFFSET

fidian commented 9 years ago

Negative indices have been removed.