9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] $ifs equivalent in mk?
@ 2014-06-12 11:05 dexen deVries
  2014-06-12 11:27 ` erik quanstrom
  0 siblings, 1 reply; 7+ messages in thread
From: dexen deVries @ 2014-06-12 11:05 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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.

in Rc, i could set $ifs to bare LF and be done with it. can equivalent be done 
in Mk?

-- 
dexen deVries

[[[↓][→]]]




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-12 12:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-12 11:05 [9fans] $ifs equivalent in mk? dexen deVries
2014-06-12 11:27 ` erik quanstrom
2014-06-12 11:39   ` dexen deVries
2014-06-12 11:41     ` erik quanstrom
2014-06-12 11:57       ` dexen deVries
2014-06-12 11:59         ` erik quanstrom
2014-06-12 12:06           ` dexen deVries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).