[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Comand token too long?
From: |
Karl Hammar |
Subject: |
Re: Comand token too long? |
Date: |
Sun, 14 Aug 2011 03:36:05 +0200 (CEST) |
Francisco Vila:
> 2011/8/13 Francisco Vila <address@hidden>:
> > Hello, does anybody what this error means?
> >
> > cd Documentation/
> > cd ./out-www; texi2pdf -I ./out-www -I ../out -I .. -I .. --quiet
> > notation.texi
> > egrep: Invalid range end
>
> This is caused by line 1713 of /usr/bin/texi2dvi (GNU Texinfo 4.13)
> 1.135 in my system,
>
> # If the COMMAND_LINE_FILENAME is not absolute (e.g., --debug.tex),
> # prepend `./' in order to avoid that the tools take it as an option.
> echo "$command_line_filename" | $EGREP '^(/|[A-z]:/)' >&6 \
> || command_line_filename="./$command_line_filename"
>
> and [A-z] is an invalid range.
Works here:
$ echo '/usr/' | egrep '^(/|[A-z]:/)'
/usr/
$ echo 'B:/' | egrep '^(/|[A-z]:/)'
B:/
$ echo 'z:/' | egrep '^(/|[A-z]:/)'
z:/
$ echo 'bin/' | egrep '^(/|[A-z]:/)'
$ egrep --version | head -1
GNU grep 2.6.3
$ echo $LANG
C
$
[A-z] is a valid range in the C locale. Maybe you have a locale with a
sorting order where z comes before A.
Regards,
/Karl Hammar
-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57