When I try to build the glibc following the Linux from scratch instruction Chapter 6.9. Glibc-2.14.1, I get a syntax error about $(command).
The simplified problem is that I can type
echo `ls`
and get the expected result.
However when I type
echo $(ls)
which should do the same thing, but I get
**bash: command substitution: line 78: syntax error near unexpected token `)'
bash: command substitution: line 78: `ls)'**
I don't know why the bash program that I created following the instruction of Linux from scratch cannot handle $() correctly.
The glibc problem is here.
Any idea?

that I can typewith a scriptline 78. What do you get when you type both. What, if you use backticks in the script? I can use both interactively. – user unknown Jan 5 '12 at 14:14