On Sun, 21 Sep 2003 12:33:08 +0200
Pierre Pronchery <khorben@???> wrote:
> > comment gerer ca en bash ??
> if [ $? -eq 0 ]; then
> echo no virus found
> elif [ $? -eq 1 ]; then
> echo virus(es) found
> elif [ $? -eq 2 ]; then
> echo error occured
> fi
Ca marche cela, de lire plusieur fois $? sans changer sa valeur ?
je serai passé par une variable intermediaire.
--
Jérôme @taz : Morgan 1200 + 1Go DDR in a 10L SS40G
"Windows 95 is a 32-bit shell for a 16-bit extension to an 8-bit
operating system designed for a 4-bit microprocessor by a 2-bit company
that can't stand one bit of competition."