Bogus usage of gcc --print-file

Mike Hernandez sequethin at gmail.com
Tue Aug 16 14:56:54 PDT 2005


On 8/16/05, Matthew Burgess <matthew at linuxfromscratch.org> wrote:
> Matthew Burgess wrote:
> 
> > # echo `dirname $(gcc -print-file-name=libgcc.a)`/specs
> 
> That can actually be shortened down to:
> 
> SPECFILE=`dirname $(gcc -print-libgcc-file-name)`/specs
> 
This stuff is all over my head but I'm just wondering why you would
mix backticks and $(). Why not just use: echo $(dirname $(gcc
-print-file-name=libgcc.a))/specs ?

Mike



More information about the lfs-dev mailing list