[BusyBox] BB 1.0.0-pre10 ash bug?

Michael Shearer mshearer at aastra.com
Tue May 11 02:37:47 UTC 2004


Hi all,

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

#!/bin/ash
pid=9182
validpid="${pid//[0-9]/}"

Execution returns the following error:

./test1.sh: 3: Syntax error: Bad substitution

Bash and other sh variants support the following:

${string//substring/replacement} 
	Replace all matches of $substring with $replacement.

Thanks,

Mike

Michael Shearer
CVX SS7 Gateway (CSG) Engineer
Aastra Telecom US, CVX Division
8 Federal Street
Billerica, MA, USA, 01821-3570
* Phone (978) 436-4248
* Fax (978) 436-4233
* Internet Mail mshearer at aastra.com
* Web www.aastra.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20040510/9d05f689/attachment-0001.htm 


More information about the busybox mailing list