[BusyBox] BB 1.0.0-pre10 ash bug?

Vladimir N. Oleynik dzo at simtreas.ru
Tue May 11 09:07:21 UTC 2004


Michael,

> Hi all,

 > #!/bin/ash
 > pid=9182
 > validpid="${pid//[0-9]/}"
 >
 > Execution returns the following error:
 >
 > ./test1.sh: 3: Syntax error: Bad substitution

> Is this a bug or is variable substitution not fully supported with Ash?

second.
supported:  $var or ${var} ${var-text}  ${var+text}  ${var?message}
${var=text} ${var%pattern} ${var%%pattern}
${var#pattern} ${var##pattern} ${#var}

use sed.


--w
vodz



More information about the busybox mailing list