[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [BusyBox] more bashisms
From: Dan Kegel <dank () kegel ! com>
Date: 2003-03-27 12:54:06
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic