All Questions
1 question
3
votes
1
answer
941
views
What is "length" of a string in Bourne shell compatibles' `${#string}`?
Arising from this discussion:
When I have (zsh 5.8, bash 5.1.0)
var="ASCII"
echo "${var} has the length ${#var}, and is $(printf "%s" "$var"| wc -c) bytes long"
...