Il corriere di Linux

Scoperto il primo bug nel programma Iget (Ikki wget)
Cominciamo bene ;-D

> #!/bin/sh
> a = 1
> if [ $a < 59 ]
>       then
>       if [ $a < 10 ]
>               then
>               wget -x http://metaldave.altervista.org/Mimmata/Mim0${a}_.jpg
>       else
>               wget -x http://metaldave.altervista.org/Mimmata/Mim${a}_.jpg
>       fi
>       a=`expr $a + 1`
> fi

versione senza bug

#!/bin/sh
a = 1
while [ $a < 59 ]
do
        if [ $a < 10 ]
                then
                wget -x http://metaldave.altervista.org/Mimmata/Mim0${a}_.jpg
        else
                wget -x http://metaldave.altervista.org/Mimmata/Mim${a}_.jpg
        fi
        a=`expr $a + 1`
done

Sono un fenomeno para...
... plegico!!!
Naturalmente non metto in dubbio la presenza di altri bug.

Mandi

Ikki

Rispondere a