From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Thu, 12 Jun 2014 07:27:18 -0400 To: 9fans@9fans.net Message-ID: <8a792eb68d2991d4c56b4666769c7f14@mikro.quanstro.net> In-Reply-To: <1558651.miEKvk4LTA@coil> References: <1558651.miEKvk4LTA@coil> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] $ifs equivalent in mk? Topicbox-Message-UUID: fa7216dc-ead8-11e9-9d60-3106f5b1d025 > i have a mkfile which does: > > alljs=`{find -name '*.js'} > > my_target:Q: ... $alljs > my_recipe; > > and it breaks for files with spaces in pathname -- each space-separated token > of pathname is treated as separate prerequisite. if you rc-quote the terms, it should work. ; find|grep b './a b' ; cat mkfile x=`{find|grep b} all: echo $x|wc for(i in $x) echo $i ; mk echo ./a b|wc for(i in ./a b) echo $i 1 2 6 ./a b