> In message <[EMAIL PROTECTED]>, Warner Losh writes:
> 
> >: to
> >: 
> >:    sh_subdirs=${SUBDIRS}; for f in $$sh_subdirs ; do ...
> >
> 
> >there's lots of other workarounds, from seeing if SUBDIRS is defined,
> >to using make's .foreach.
> 
> Another option is:
>       
>       for f in $$empty_list ${SUBDIRS}; do ...
> 
> where 'empty_list' is any undefined sh variable.

Not bad, but will break if the shell is run with the `-u' option on
for some reason.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    [EMAIL PROTECTED]    http://cnswww.cns.cwru.edu/~chet/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to