> 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

Reply via email to