automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filenames containing blanks


From: Lars Hecking
Subject: Re: Filenames containing blanks
Date: Wed, 23 Jul 2003 12:38:28 +0100
User-agent: Mutt/1.5.4i

> >test -n '$(libs)' && for i in '$(libs)'; do ...
> 
> I like that one :-) it's about as short as the current way
> to guard against empty lists, but I am sure you meant not
> to use single-ticks around the for-in argument, did ye.. ;-)
 
 The && and || shortcuts are not nice to the environment, because the
 exit code of 'test' is retained in $? after the line is executed.
 Better to wrap it with if/else.

 When I have to deal with whitespace in filenames (in shell scripts),
 I temporarily change IFS, but I can't see how this could be applied
 to Makefiles.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]