How to do array operation in busybox
Pratik Prajapati
pratik.prajapati12 at gmail.com
Fri Jun 26 05:37:11 UTC 2015
Hi,
I am working on LTP-DDT project (https://github.com/rogerq/ltp-ddt) which i
cross-compiled for my target and my target uses busybox. But running it on
my target gives me error as array operation is not supported in busybox.
I have attached script with this mail.
I am getting error for :
sh: /opt/ltp/testcases/bin/ddt/common/common.sh: line 305: syntax error:
bad substitution
I tried this:
305: shift
306: index=0307: for arg; 308: do
309: x[$index]=$arg310: ((index++)) 311: done
but i got error: syntax error: unexpected "(" (expecting "}")
Also couldn't found any solution on google.
How to make it work on busybox. Please help.
Thanks,
Pratik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20150626/e8113bb4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: common.sh
Type: application/x-sh
Size: 10596 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20150626/e8113bb4/attachment.sh>
More information about the busybox
mailing list