Date: Fri, 8 Feb 2002 21:31:58 -0500 From: Mike Barcroft <mike@FreeBSD.ORG> To: "M. Warner Losh" <imp@village.org> Cc: standards@FreeBSD.ORG Subject: Re: diff problem Message-ID: <20020208213158.D73757@espresso.q9media.com> In-Reply-To: <20020208.183640.89249665.imp@village.org>; from imp@village.org on Fri, Feb 08, 2002 at 06:36:40PM -0700 References: <20020208.183640.89249665.imp@village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
M. Warner Losh <imp@village.org> writes: > We have a problem with out diff. Given file foo1 and foo2. foo1 has > a newline at the end, while foo2 doesn't. Diff produces: > > % diff -c ~/foo[12] > *** /dell/imp/foo1 Fri Feb 8 18:05:26 2002 > --- /dell/imp/foo2 Fri Feb 8 18:05:31 2002 > *************** > *** 1 **** > ! this is a test > --- 1 ---- > ! this is a test > % > > It should produce a warning about no newline at the end of the file, > but doesn't. At least that's my take. What do standards have to say? SUSv3 doesn't specificly mention this case. Since text files always end with a newline, I think we should treat these types of files the same way we do binary files. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020208213158.D73757>