Hi Denys !

2) shell substitution ${#var}
Does this length operation shall give the number of bytes in var or the
number of characters (which may differ for multi byte characters, like
UTF-8).

bash gives number of Unicode chars.
I just fixed both ash and hush to do the same.

bash seams to be the only shell which does this. So is this a bash-ism?

... and "expr length $var" (upstream) still return the size in bytes not characters.

--
Harald

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to