[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

grep 2.10 et 2.12



Bonjour à tous

/tmp/fichier contient un seul caractère nul.

Avec grep 2.10:

$ if (cat /tmp/fichier | grep -q -E "^[0-9 ]*$") ; then echo Yop  ; fi
$ 

Avec grep 2.12:
$ if (cat /tmp/fichier | grep -q -E "^[0-9 ]*$") ; then echo Yop  ; fi
Yop
$ 

Est ce voulu ou bien est un bug et il faut faire un rapport?

François Boisson


Reply to: