[bug] ash: 'string length'
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Fri Oct 2 17:38:21 UTC 2009
Consider this script:
---8<---
#!/bin/sh
set -e
#set -x
echo "1. \$1='$1', size \${#\$1}=${#$1}" >&2
echo "2. \$2='$2', size \${#\$2}=${#$2}" >&2
echo "3. \$3='$3', size \${#\$3}=${#$3}" >&2
echo "4. \$1='$1', size \${#1}=${#1}" >&2
--->8---
Expecting error 'bad substitution' on 1., 2. and 3. I get:
size=5
instead, no error.
Cheers,
--
Cristian
More information about the busybox
mailing list