| Newsgroups |
gmane.linux.lfs.automated |
| Message-ID |
<CAHQM782DdqdHafH0szRUL+VKXAdOzxMsdHZGHLZ5kJ1v7YQPQg@mail.gmail.com> |
On Sun, Dec 18, 2022 at 11:08 AM Patrick Star <[email protected]> wrote:
> On Sun, Dec 18, 2022 at 12:31 AM Pierre Labastie <
> [email protected]> wrote:
>
>> On Sat, 2022-12-17 at 14:50 +0800, Patrick Star wrote:
>> > Error log as below:
>> > Creating Makefile... START
>> > Processing... <Chapter 4>
>> > sed: -e expression #1, char 17: Invalid range end
>> >
>> > <jhalfs> exit
>> >
>> > I have located it happend at jhalfs/LFS/master.sh line 69.
>> >
>> > 67 # Grab the name of the target
>> > 68 # This is only used to check the name in "opt_override" or
>> "BLACKLIST"
>> > 69 name=`echo ${this_script} | sed -e 's@[0-9]\{3,4\}-@@' \
>> > 70 -e 's@-pass[0-9]\{1\}@@' \
>> > 71 -e 's@-libstdc++@@' \
>> > 72 -e 's,'$N',,' \
>> > 73 -e 's@-32@@'`
>> > 74
>> >
>> > But I know nothing about sed :-)
>>
>> This seems weird: This sed is ok for me with sed-4.9... What are your
>> settings?
>> Specially that of LANG (in configuration)?
>>
>
> LANG <en_US.UTF-8>
>
> Probably my sed-4.9 is broken:
>
> sed-4.8 is ok.
> $ echo 401-creatingminlayout | sed-4.8 -e 's@[0-9]\{3,4\}-@@' -e 's@-pass[0-9]\{1\}@@'
> -e s@-libstdc++@@ -e s,,, -e s@-32@@
> creatingminlayout
>
> but not sed-4.9.
> $ echo 401-creatingminlayout | sed-4.9 -e 's@[0-9]\{3,4\}-@@' -e 's@-pass[0-9]\{1\}@@'
> -e s@-libstdc++@@ -e s,,, -e s@-32@@
> sed-4.9: -e expression #1, char 17: Invalid range end
>
> Also my sed-4.9 is much smaller than sed-4.8 (both stripped).
> 172K /usr/bin/sed-4.8
> 108K /usr/bin/sed-4.9
>
>
I've recompiled sed-4.9, but still has the same error.
Also I found somethings interesting, both the two below commands are fine.
echo 401-creatingminlayout | sed -e 's@[0-8]@@'
echo 401-creatingminlayout | sed -e 's@[1-9]@@'
But sed -e 's@[0-9]@@' still gave an error of "Invalid range end".
>
>> Pierre
>> --
>> http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
>> Unsubscribe: See the above information page
>
>
--
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page