[BusyBox] more bashisms

Dan Kegel dank at kegel.com
Thu Mar 27 12:54:06 UTC 2003


ltp uses lines of the sort

(( diff1=$allow2 - $allow1 ))

while (( $count < $NUMLOOPS ))

in shell scripts.  I believe these are not posix compliant, and
should be rewritten

diff1=$(( $allow2 - $allow1 ))

while [ $count -lt $NUMLOOPS ]

Oddly, though, bash's posix mode doesn't reject those constructs.

Who's right here -- bash or me?  Are those legal posix?

And is it worth considering adding them to busybox ash?
(Or are they already supported, and I'm just being a dork?)

Thanks,
Dan

-- 
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045




More information about the busybox mailing list