Le -10/01/-28163 20:59, Hilmar Preuße a écrit : > hi...@drachi:~$ egrep '^(/|[A-z]:/)' a.tex > hi...@drachi:~$ > hi...@drachi:~$ locale > LANG=en_US.UTF-8 > <etc.>
Err... st...@sayshell:~$ LC_ALL=en_US.UTF-8 egrep '^(/|[A-z]:/)' /tmp/test.tex egrep: Invalid range end st...@sayshell:~$ echo $? 2 > Is this problem limited to the French locale? Do you eventually have > a solution, perhap setting the locale to POSIX before running this > command? IMHO, it looks safer to set the locale to POSIX. BTW, I'm not sure about the semantics of [A-z]: for example, does ` (which is between Z and a in ASCII) belong to it? If '[A-Za-z]' is meant, then it's probably better to use that (or '[[:alpha:]]'). Cheers, -- Stéphane -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

