1
2 #### ${#s} and len(s)
3
4 source $REPO_ROOT/spec/testdata/unicode.sh
5
6 # bash agrees
7 echo "farmer scalars =" ${#farmer}
8
9 echo "facepalm scalars =" ${#facepalm}
10
11 echo "farmer len =" $[len(farmer)]
12
13 echo "facepalm len =" $[len(facepalm)]
14
15 ## STDOUT:
16 farmer scalars = 4
17 facepalm scalars = 5
18 farmer len = 15
19 facepalm len = 17
20 ## END