Date: Tue, 19 Jul 2005 22:31:12 -0700 From: Mac Mason <mac@cs.hmc.edu> To: freebsd-questions@freebsd.org Subject: Re: 1 byte more? Message-ID: <20050720053112.GC19306@orthanc.st.hmc.edu> In-Reply-To: <20050720051806.5DE721D92E@imss.sgp.fujixerox.com> References: <20050720051806.5DE721D92E@imss.sgp.fujixerox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--YD3LsXFS42OYHhNZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Wed, Jul 20, 2005 at 01:21:10PM +0800, Xu Qiang wrote:
> I used xemacs to hex edit that file, to find a newline character (0x0a) is
> added to the txt file, even though I didn't touch the "Enter" key in my
> keyboard. Maybe vi is too aggressively helpful. :)
As I recall, the convention is than UNIX text files should always end with a
newline character. I can certainly envision situations where you might not
want to have the extra \n, but it makes intuitive sense for it to be there:
having the first half of a line in one file and the second half in another
file feels very strange to me...
--Mac
--YD3LsXFS42OYHhNZ
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)
iD8DBQFC3eGg1AphoTGXiN0RAqmCAJwInxUUNYz1T/Uw6Nw3YVcYMONlLACfUbt4
i5n/bEm5Tp3rDN2JfNscxqY=
=CQiq
-----END PGP SIGNATURE-----
--YD3LsXFS42OYHhNZ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050720053112.GC19306>
