[lfs-support] chapter06 glibc

Bruce Dubbs bruce.dubbs at gmail.com
Wed Jan 30 16:50:46 PST 2013

Yusuf Yılmaz wrote:
> gawk already installed. i think the problem on chroot system. cause on the
> host system:
> export test=asd
> echo $(test)
> runs success but on chroot lfs system
> it gives this error:
> root:/# export test=asd
> root:/# echo $(test)
> bash: command substitution: line 3: syntax error near unexpected token `)'
> bash: command substitution: line 3: `test)'

Your syntax is wrong.  You want:

echo ${test}

Variable substitution is done with braces, {}, not parentheses ().

   -- Bruce

More information about the lfs-support mailing list