Firerat wrote: > On 31 January 2012 14:50, Dave H <[email protected]> wrote: >>> $(readelf -l /bin/sh | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p') >> with this i get: >> =========================================================================== >> $(readelf -l /bin/sh | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p') >> >> bash: command substitution: line 54: syntax error near unexpected token `)' >> bash: command substitution: line 54: `readelf -l /bin/sh | sed -n >> 's@.*interpret.*/tools\(.*\)]$@\1@p')' >> =========================================================================== >> >>> ` readelf -l /bin/sh | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p' ` >> this looks like i get something different (this is still with set -vx) >> =========================================================================== >> root:/sources/glibc-2.14.1# ` readelf -l /bin/sh | sed -n >> 's@.*interpret.*/tools\(.*\)]$@\1@p' ` >> >> ` readelf -l /bin/sh | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p' ` >> �readelf -l /bin/sh | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p' >> ++ readelf -l /bin/sh >> ++ sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p' >> + /lib64/ld-linux-x86-64.so.2 >> bash: /lib64/ld-linux-x86-64.so.2: No such file or directory >> ============================================================================
What is the result of: echo `bash --version` How about: echo $(bash --version) The result above for the backticks is correct, but the $() is not. Give us the full output of the script in section vii of the Preface (Host System Requirements). Also show us the result of: set -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
