From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <7e6f56d51efc527f4a203f310319b0b1@ladd.quanstro.net> References: <7e6f56d51efc527f4a203f310319b0b1@ladd.quanstro.net> Date: Fri, 1 Jan 2010 20:34:54 +0000 Message-ID: From: roger peppe To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] du and find Topicbox-Message-UUID: b57ce988-ead5-11e9-9d60-3106f5b1d025 2009/12/29 erik quanstrom : > what seems more important to me is a way to unlimit the size > of argv. =C2=A0otherwise we'll need to go down the hideous xargs path. > (apoligizes to hideous functions everywhere for the slur.) i don't really see why xargs (the idea, not the usual unix implementations) is inherently such a bad idea. years ago i wrote an ultra simple version with no options, and it's about 80 lines of code, which i use to grep through all of /sys/src for example. if you always split on \n (which is banned in filenames in plan 9) and don't interpret any other metacharacters, what's the problem? it's also nice because you often get some results before you've walked the entire file tree.