Sorry.

I miss this
http://www.mail-archive.com/[email protected]/msg16549.html

Thank you!

On Fri, 16 Mar 2012 19:09:18 +0400, sannikov <[email protected]>
wrote:
> 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@.*interpret.*/tools\(.*\)]$@\1@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@.*interpret.*/tools\(.*\)]$@\1@p')
> bash: command substitution: line 42: syntax error near unexpected token
> `)'
> bash: command substitution: line 42: `readelf -l /bin/sh | sed -n
> 's@.*interpret.*/tools\(.*\)]$@\1@p')'
> 
> 
> But "`" instead of brackets works fine:
> 
> root:/sources/glibc-2.14.1# DL=`readelf -l /bin/sh | sed -n
> 's@.*interpret.*/tools\(.*\)]$@\1@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.


-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to