(no subject)

dperkins at frii.com dperkins at frii.com
Mon Oct 23 10:54:23 PDT 2006

> On 10/23/06, Denis Silin <dsln at mail.ru> wrote:
>> Hello!
>> There is a problem with actions from ch. 5.7 Adjusting the Toolchain.
>> This command gives an error - bash: $SPECFILE: ambiguous redirect.
>> It seems that there is no file "specs" on the LFS partition at all. What
>> may be wrong and how to correct it?
>> lfs:~$ SPECFILE='dirname $(gcc -print-libgcc-file-name)'/specs
> It looks like you made a typo. The mark at the beginning is a `
> (backtick), not a ' (quote). Same for the one after name). So, the
> command should be:
> SPECFILE=`dirname $(gcc -print-libgcc-file-name)`/specs
> --
> Dan
> --

Maybe it would be better to say this?

SPECFILE=$(dirname $(gcc -print-libgcc-file-name))/specs

More information about the lfs-support mailing list