From owner-freebsd-hackers Mon Mar 6 12:38:51 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id E2F6637B5F6 for ; Mon, 6 Mar 2000 12:38:46 -0800 (PST) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 6 Mar 2000 20:38:45 +0000 (GMT) To: Warner Losh Cc: chet@po.CWRU.Edu, jhix@mindspring.com, Doug@gorean.org, hackers@FreeBSD.ORG, iedowse@maths.tcd.ie Subject: Re: empty lists in for In-reply-to: Your message of "Mon, 06 Mar 2000 13:15:45 MST." <200003062015.NAA61215@harmony.village.org> Date: Mon, 06 Mar 2000 20:38:44 +0000 From: Ian Dowse Message-ID: <200003062038.aa62975@salmon.maths.tcd.ie> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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