This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Errors in -start targets for stage2 and later


Matt Kraai <kraai@alumni.cmu.edu> writes:

> Why were they changed from

>  for dir in $(SUBDIRS);

> to

>  subdirs="$(SUBDIRS)"; for dir in $subdirs;

The latter construct is more portable if $(SUBDIRS) can be emtpy.  The
first construct will error out on some shells if $(SUBDIRS) is empty.

The $ in $subdirs should be doubled, though.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]