From owner-freebsd-questions@FreeBSD.ORG Wed Jul 20 05:30:35 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEA0D16A41F for ; Wed, 20 Jul 2005 05:30:35 +0000 (GMT) (envelope-from mac@orthanc.st.hmc.edu) Received: from orthanc.st.hmc.edu (orthanc.ST.HMC.Edu [134.173.56.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6965843D48 for ; Wed, 20 Jul 2005 05:30:35 +0000 (GMT) (envelope-from mac@orthanc.st.hmc.edu) Received: by orthanc.st.hmc.edu (Postfix, from userid 1001) id DEB3560E1; Tue, 19 Jul 2005 22:31:12 -0700 (PDT) Date: Tue, 19 Jul 2005 22:31:12 -0700 From: Mac Mason To: freebsd-questions@freebsd.org Message-ID: <20050720053112.GC19306@orthanc.st.hmc.edu> Mail-Followup-To: freebsd-questions@freebsd.org References: <20050720051806.5DE721D92E@imss.sgp.fujixerox.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YD3LsXFS42OYHhNZ" Content-Disposition: inline In-Reply-To: <20050720051806.5DE721D92E@imss.sgp.fujixerox.com> User-Agent: Mutt/1.4.2.1i Subject: Re: 1 byte more? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2005 05:30:35 -0000 --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--