Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Mar 2000 20:38:44 +0000
From:      Ian Dowse <iedowse@maths.tcd.ie>
To:        Warner Losh <imp@village.org>
Cc:        chet@po.CWRU.Edu, jhix@mindspring.com, Doug@gorean.org, hackers@FreeBSD.ORG, iedowse@maths.tcd.ie
Subject:   Re: empty lists in for 
Message-ID:   <200003062038.aa62975@salmon.maths.tcd.ie>
In-Reply-To: Your message of "Mon, 06 Mar 2000 13:15:45 MST." <200003062015.NAA61215@harmony.village.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200003062015.NAA61215@harmony.village.org>, 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.

Ian


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200003062038.aa62975>