On 03/20/2010 11:14 AM, Matthias Bolte wrote:
if test "$verbose" = "0" ; then
mod=`eval "expr \( $counter + 1 \) % 40"`
- for i in `seq $mod 40`
- do
- echo -n " "
- done
+ if test "$mod" != "0" -a "$mod" != "1" ;
then
test cond1 -a cond2 is not portable. Use test cond1 && test cond2.
+ for i in `seq $mod 40`
+ do
+ echo -n " "
echo -n is not portable (although you didn't introduce its use). Use
printf ' ' instead.
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org