9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Brdline and the last line
@ 2013-10-09 15:53 Steve Simon
  2013-10-09 16:04 ` erik quanstrom
  2014-05-27  3:49 ` 有澤 健治
  0 siblings, 2 replies; 4+ messages in thread
From: Steve Simon @ 2013-10-09 15:53 UTC (permalink / raw)
  To: 9fans

Hi all

It has long been an irritation that Brdline returns failure (to match the
end of line token) at end of file if the file does not end with a newline.

This is correct but annoying.

does anyone had a neat snippet of code which ensures we parse the
last line correctly?

For files on the filesystem I just fix them, but I am wrapping Brdline
around a tcp connection so I am not in control of how people terminate
their files...

-Steve



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-27  3:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-09 15:53 [9fans] Brdline and the last line Steve Simon
2013-10-09 16:04 ` erik quanstrom
2013-10-10  3:46   ` 有澤 健治
2014-05-27  3:49 ` 有澤 健治

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).