[lfs-support] LFSv7.1: 6.9. Glibc-2.14.1 typo?

sannikov sannikov at cs.karelia.ru
Fri Mar 16 08:09:18 PDT 2012


Hi!

I'v got some problem with Glibc in 6-th chapter
(http://www.linuxfromscratch.org/lfs/view/stable/chapter06/glibc.html)
with this commands:
=================================================================================
DL=$(readelf -l /bin/sh | sed -n 's at .*interpret.*/tools\(.*\)]$@\1 at p')
sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$DL -o|" \
        scripts/test-installation.pl
unset DL
================================================================================

At first line I'v got this:

root:/sources/glibc-2.14.1# DL=$(readelf -l /bin/sh | sed -n
's at .*interpret.*/tools\(.*\)]$@\1 at p')
bash: command substitution: line 42: syntax error near unexpected token
`)'
bash: command substitution: line 42: `readelf -l /bin/sh | sed -n
's at .*interpret.*/tools\(.*\)]$@\1 at p')'


But "`" instead of brackets works fine:

root:/sources/glibc-2.14.1# DL=`readelf -l /bin/sh | sed -n
's at .*interpret.*/tools\(.*\)]$@\1 at p'`
root:/sources/glibc-2.14.1# echo $DL
/lib64/ld-linux-x86-64.so.2

There is any typo or something else?

--
WBR, Alexander Sannikov.



More information about the lfs-support mailing list