From mboxrd@z Thu Jan 1 00:00:00 1970 From: dexen deVries To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Thu, 12 Jun 2014 13:39:37 +0200 Message-ID: <3588143.7BUTMgfxcB@coil> User-Agent: KMail/4.10.5 (Linux/3.14.0-l60; KDE/4.10.5; x86_64; ; ) In-Reply-To: <8a792eb68d2991d4c56b4666769c7f14@mikro.quanstro.net> References: <1558651.miEKvk4LTA@coil> <8a792eb68d2991d4c56b4666769c7f14@mikro.quanstro.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Subject: Re: [9fans] $ifs equivalent in mk? Topicbox-Message-UUID: fa75f360-ead8-11e9-9d60-3106f5b1d025 On Thursday 12 of June 2014 07:27:18 erik quanstrom wrote: > > i have a mkfile which does: > >=20 > > alljs=3D`{find -name '*.js'} > >=20 > > my_target:Q: ... $alljs > >=20 > > my_recipe; > >=20 > > and it breaks for files with spaces in pathname -- each space-separ= ated > > token of pathname is treated as separate prerequisite. >=20 > if you rc-quote the terms, it should work. >=20 > ; find|grep b > './a b' > ; cat mkfile > x=3D`{find|grep b} >=20 > all: > =09echo $x|wc > =09for(i in $x) > =09=09echo $i > ; mk > echo ./a b|wc > for(i in ./a b) > =09echo $i > 1 2 6 > ./a b here the var is processed by Rc inside recipe; in my case i need it pro= cessed=20 by Mk inside prerequisite list --=20 dexen deVries [[[=E2=86=93][=E2=86=92]]]