On Sunday, July 13, 2014 6:56:20 PM UTC+12, Linda A. Walsh wrote:
> Where is it written that the last line of a file needs a uselss linefeed?
POSIX definition of a text file is a file that contains characters organized into zero or more lines:
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_397
A line is defined to have a newline:
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
Text files with incomplete last lines have problems with lots of tools, like the diff programmes used by version control systems. If you are not using a VCS like mercurial or git, I suggest you look into it, they're a very good idea.
Regards, John Little
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sunday, July 13, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment