From mboxrd@z Thu Jan 1 00:00:00 1970 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: References: <1UkwIw-2xe-00@marmaro.de> User-Agent: meillo's mail handler (mmh) Date: Tue, 11 Jun 2013 17:38:56 +0200 From: markus schnalke Message-ID: <1UmQeu-5gW-00@marmaro.de> Subject: Re: [9fans] Duff's rc paper: Why awk? Topicbox-Message-UUID: 64b439e0-ead8-11e9-9d60-3106f5b1d025 [2013-06-11 14:24] Rudolf Sykora > > plan 9 sed reads a second line before quitting (note the "def" in the example > > below); sed does not work. Erik, thanks for the explanation. However, the man page states: q Quit. Branch to the end of the script. Do not start a new cycle. Thus, this is a bit odd. > Is there any good reason for this difference between plan9 and gnu behaviour? It looks a bit like the bug described in the man page, although input is read from the terminal, not from a pipe. http://plan9.bell-labs.com/magic/man2html/1/sed meillo