From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 6 Oct 2009 07:50:14 -1000 From: Tim Newsham To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-Reply-To: <4ACB026E.4070409@maht0x0r.net> Message-ID: References: <20091005192428.GA24445@nipl.net> <200910052204.aa92451@salmon.maths.tcd.ie> <13426df10910051922h6d40c1b2u5a8481db9a2a9b64@mail.gmail.com> <4ACB026E.4070409@maht0x0r.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [9fans] mishandling empty lists - let's fix it Topicbox-Message-UUID: 814a54d4-ead5-11e9-9d60-3106f5b1d025 > You can build this whole dream using plan9 and show the world, you don't have > to rewrite any of the utilities, just shape the calling convention to your > liking. [...] > fn mkdir { just write a single combinator that when applied to a command makes it behave in the "no non-flag arguments == dont run" way. Then its just: l0 cat $args l0 chmod +x $args ... Tim Newsham http://www.thenewsh.com/~newsham/