From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <14ec7b180906080958l71642089k6fbe672fd18c9771@mail.gmail.com> Date: Mon, 8 Jun 2009 19:42:39 +0200 Message-ID: From: yy To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [9fans] acme: send dot to the stdin of a more complicated command Topicbox-Message-UUID: 06982720-ead5-11e9-9d60-3106f5b1d025 2009/6/8 Rudolf Sykora : > The very question for me now is: why it behaves how it behaves, i.e > why newlines (if it's them) are problematic. > > Ruda > They are the only way Edit has to separate commands. You will notice that you cannot use something like i/A/a/W/ (or i/A/;a/W/, for example). However, you can chord something like i/A/ a/W/ When you chord your example, acme calls rc with: rc -c 'awk '', so it does not work. rc is who interprets those multiple-line commands. You could use rc functions if that makes you feel better than with plain files, just remember to prepend the function name with a semi-colon, to force rc to interpret the command. At least that is how I remember it, please somebody correct me if I am wrong. -- - yiyus || JGL .