Bogus usage of gcc --print-file

Matthew Burgess matthew at
Wed Aug 17 12:33:02 PDT 2005

Mike Hernandez wrote:

> 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 ?

Basically it's because, purely through habit, I only ever use backticks. 
  Unfortunately, one can't nest backticks, so I came up with the mixture 
of backticks and $().  Oh, plus the fact that in my makefile based 
scripts the '$' needs escaping, so the fewer of those I have to have the 
better :)


More information about the lfs-dev mailing list