From: degomme Date: Mon, 8 Dec 2014 22:37:07 +0000 (+0100) Subject: bashism -- (fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772329 ) X-Git-Tag: v3_12~760^2~50 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d2e08004d48f0cef99d943d253e2f1dd0b8470b0?ds=sidebyside bashism -- (fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772329 ) --- diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index 5b588bf934..67e4624d23 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -343,9 +343,9 @@ if [ -n "${HAVE_SEQ}" ]; then SEQ=`${HAVE_SEQ} 0 $((${NUMPROCS}-1))` else cnt=0 - while (( $cnt < ${NUMPROCS} )) ; do - SEQ="$SEQ $cnt" - cnt=$((cnt + 1)); + while [ $cnt -lt ${NUMPROCS} ] ; do + SEQ="$SEQ $cnt" + cnt=$((cnt + 1)); done fi