[BUG] ${#var} returns length in bytes, not characters

2015-06-03 Thread Martijn Dekker
POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02 ${#parameter} String Length. The length in characters of the value of parameter shall be substituted. [...] dash does not expand the length in characters; it expands the length in bytes instead. That

Re: [BUG] ${#var} returns length in bytes, not characters

2015-06-03 Thread Stephane Chazelas
2015-06-03 13:29:33 +0200, Martijn Dekker: POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02 ${#parameter} String Length. The length in characters of the value of parameter shall be substituted. [...] dash does not expand the length in