xref: /freebsd/bin/sh/tests/expansion/length1.0 (revision f5f40dd63bc7acbb5312b26ac1ea1103c12352a6)
1
2v=abcd
3[ "${#v}" = 4 ] || echo '${#v} wrong'
4v=$$
5[ "${#$}" = "${#v}" ] || echo '${#$} wrong'
6[ "${#!}" = 0 ] || echo '${#!} wrong'
7set -- 01 2 3 4 5 6 7 8 9 10 11 12 0013
8[ "${#1}" = 2 ] || echo '${#1} wrong'
9[ "${#13}" = 4 ] || echo '${#13} wrong'
10v=$0
11[ "${#0}" = "${#v}" ] || echo '${#0} wrong'
12