From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Thu, 12 Jun 2014 07:59:45 -0400 To: 9fans@9fans.net Message-ID: <20c7463b87d18daab9b829b5218c8f99@brasstown.quanstro.net> In-Reply-To: <2285126.xVKzqVMdiJ@coil> References: <1558651.miEKvk4LTA@coil> <3588143.7BUTMgfxcB@coil> <1c885de8847733dc93beb9c102f2541d@brasstown.quanstro.net> <2285126.xVKzqVMdiJ@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: fa80abc0-ead8-11e9-9d60-3106f5b1d025 > thanks, tried and works. > > > used sed for quoting; end result is perl-ugly: > > alljs=`{find -name '*.js' | 9 sed 's/''/''''/g; s/^|$/''/g' } > or > alljs=`{find -name '*.js' | 9 sed 's/^|$|''/&''/g' } great. glad that worked. though it is always a bit sad when one has to outwit one's tools. as you may have noticed from the example, there are some pitfalls (echo $x|wc got the wrong answer). - erik