]>
Commit | Line | Data |
---|---|---|
deb63bfb | 1 | # $FreeBSD: head/bin/sh/tests/expansion/length1.0 219611 2011-03-13 16:20:38Z jilles $ |
71aad674 A |
2 | |
3 | v=abcd | |
4 | [ "${#v}" = 4 ] || echo '${#v} wrong' | |
5 | v=$$ | |
6 | [ "${#$}" = "${#v}" ] || echo '${#$} wrong' | |
7 | [ "${#!}" = 0 ] || echo '${#!} wrong' | |
8 | set -- 01 2 3 4 5 6 7 8 9 10 11 12 0013 | |
9 | [ "${#1}" = 2 ] || echo '${#1} wrong' | |
10 | [ "${#13}" = 4 ] || echo '${#13} wrong' | |
11 | v=$0 | |
12 | [ "${#0}" = "${#v}" ] || echo '${#0} wrong' |