True. I guess there should be a check for an unset var to not run this loop. However, I don't know what that var is. Apparently there is no harm in running that loop with an empty list except for cosmetics (ugly error message). But I just can't be sure until I know about the WHAT.
Benjamin Markus Neteler wrote: > Benjamin Ducke wrote on 10/26/2007 12:29 PM: >>> What happens if you enter the following directly into the shell? >>> >>> if [ "" != "" ] ; then for dir in ; do make -C $dir clean ; done >>> ; fi >>> >>> >> sh: syntax error near unexpected token `;' >> >> > > In that rule the list is empty: > > ... for dir in WHAT?;... > > Isn't that the problem? > Or no ; after/before "done"? > > Markus > > > > _______________________________________________ > grass-dev mailing list > [email protected] > http://grass.itc.it/mailman/listinfo/grass-dev > > -- Benjamin Ducke, M.A. Archäoinformatik (Archaeoinformation Science) Institut für Ur- und Frühgeschichte (Inst. of Prehistoric and Historic Archaeology) Christian-Albrechts-Universität zu Kiel Johanna-Mestorf-Straße 2-6 D 24098 Kiel Germany Tel.: ++49 (0)431 880-3378 / -3379 Fax : ++49 (0)431 880-7300 www.uni-kiel.de/ufg _______________________________________________ grass-dev mailing list [email protected] http://grass.itc.it/mailman/listinfo/grass-dev

