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

Bug#586134: texi2dvi: improper call to grep



On 12.07.10 Stéphane Glondu (steph@glondu.net) wrote:
> Le -10/01/-28163 20:59, Hilmar Preuße a écrit :

Hi,

> > hille@drachi:~$ egrep '^(/|[A-z]:/)' a.tex 
> > hille@drachi:~$
> > hille@drachi:~$ locale
> > LANG=en_US.UTF-8
> > <etc.>
> 
> Err...
> 
> steph@sayshell:~$ LC_ALL=en_US.UTF-8 egrep '^(/|[A-z]:/)' /tmp/test.tex
> egrep: Invalid range end
> steph@sayshell:~$ echo $?
> 2
> 
Stupid me: that was my stable system. I can reproduce the problem on
Debian unstable.

> 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:]]').
> 
Probably. Unfortunately I don't really understand how the specific
code block works, hence I can't tell.

H.
-- 
sigmentation fault



Reply to: