9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Rudolf Sykora <rudolf.sykora@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] p9p sed vs linux sed
Date: Wed, 12 Aug 2015 16:22:19 +0200	[thread overview]
Message-ID: <CAOEdRO01ijZDkjaZXb+X=CARzhF+8ruFFi1jYCoZBBp29M_4iw@mail.gmail.com> (raw)
In-Reply-To: <aca3641bbc421285e43c25cfd7b694b5@proxima.alt.za>

On 12 August 2015 at 15:47,  <lucio@proxima.alt.za> wrote:
> You can't write a file in vi that does not end in a newline.

You, however, can do it pretty easily with cat.
(Sam asks you if you mean it, acme just does it.)

> So, I vote that text handling utilities should deal with all lines in
> text files uniformly,even the last one.

I encountered the problem when I selected a couple of words in acme
which I wanted to bracket with sed with something like

| sed 's/^/</' | sed 's/$/>/'

and suddenly you see...

On the other hand, as you say, it's a matter of taste.
(If the behaviour is not prescribed.)

R Sykora



  reply	other threads:[~2015-08-12 14:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-12  7:39 Rudolf Sykora
2015-08-12  7:48 ` Ingo Krabbe
2015-08-12  7:57   ` Rudolf Sykora
2015-08-12  8:13     ` tlaronde
2015-08-12  8:23       ` Rudolf Sykora
2015-08-12 11:35       ` Ingo Krabbe
2015-08-12 12:39         ` Rudolf Sykora
2015-08-12 13:47           ` lucio
2015-08-12 14:22             ` Rudolf Sykora [this message]
2015-08-12 14:29               ` Ingo Krabbe
2015-08-12  7:58   ` Ingo Krabbe
2015-08-14 14:59 ` Alexander Kapshuk
2015-08-15  2:27   ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOEdRO01ijZDkjaZXb+X=CARzhF+8ruFFi1jYCoZBBp29M_4iw@mail.gmail.com' \
    --to=rudolf.sykora@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).