SPECFILE: ambiguous redirect

Bauke Jan Douma bjdouma at xs4all.nl
Mon Oct 23 08:39:23 PDT 2006

Denis Silin 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 && gcc -dumpspecs > $SPECFILE && sed 's@^/lib/ld-linux.so.2@/tools&@g' $SPECFILE > tempspecfile && unset SPECFILE
> bash: $SPECFILE: ambiguous redirect
> lfs:~$

Looks like the first pair of single quotes need to be backticks.


More information about the lfs-support mailing list