Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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" ...
Marcus Müller's user avatar