Bruce Dubbs bruce.dubbs at
Fri Feb 12 14:03:53 PST 2010

bchaffin at wrote:
>   I am working from book 6.5
>     I am up to the stage of building Glibc from within the system proper, chap
>     ter  6 section 9.1
>     This command:
>     DL=3D$(readelf -l /bin/sh | sed -n 's at .*interpret.*/tools\(.*\)]$@\1 at p')
Extra characters.

produces the following output:
>     "bash: command substitution: line 35: syntax error near unexpected token `)
>     '"
>     "bash: command substitution: line 35: `readelf -l /bin/sh | sed -n 's at .*int
>     erpret.*/tools\(.*\)]$@\1 at p')'"

Whenever you get this type of error, try to break it down:

readelf -l /bin/sh

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

See if those work. Then go back and analyze the original line didn't work.

   -- Bruce

More information about the lfs-support mailing list