xref: /freebsd/bin/sh/tests/expansion/length1.0 (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
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