[lfs-support] Glibc chapter 6 stuck...

Bruce Dubbs bruce.dubbs at gmail.com
Mon Aug 13 18:38:14 PDT 2012

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

Since it is evidently a script (line 45), I suspect a problem at a line 
earlier in the script.

When you think there is a error, cut and paste the code inside the $() 
to check.  In this case:

readelf -l /bin/sh | sed -n 's at .*interpret.*/tools\(.*\)]$@\1 at p'

   -- Bruce

More information about the lfs-support mailing list