Date: Thu, 30 Dec 1999 17:21:09 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: "David O'Brien" <obrien@freebsd.org> Cc: John Polstra <jdp@polstra.com>, arch@freebsd.org Subject: Re: Changing diff's default output format Message-ID: <Pine.BSF.4.10.9912301707180.294-100000@alphplex.bde.org> In-Reply-To: <19991229190819.E16090@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 29 Dec 1999, David O'Brien wrote: > On Wed, Dec 29, 1999 at 09:30:31AM -0800, John Polstra wrote: > > > > The Single Unix Specification also states that the default output > > format has the traditional (ed-style) form. > > That's the strongest and best argument against the change so far. And > one I'm willing to follow. > > [Had POSIX been non-ambiguously worded, I'd have listened to it.] POSIX 1992 draft standard continued (I trimmed too much context in the previous quote): P2> 4.17.6.1.2 diff Default Output Format P2> P2> The default (without -e, -c, or -C options) diff utility output contains P2> lines of these forms: P2> P2> "%da%d\n", <num1>, <num2> P2> P2> "%da%d,%d\n", <num1>, <num2>, <num3> P2> P2> [...] P2> P2> These lines resemble ed subcommands to convert file1 into file2. The line P2> [...] P2> P2> Following each of these lines, diff shall write to standard output all P2> lines affected in the first file using the format: P2> P2> "<W%s", <line> P2> P2> and all lines affected in the second file using the format: P2> P2> ">W%s", <line> P2> P2> If there are lines affected in both file1 and file2 (as with the c P2> subcommand), the changes are separated with a line consisting of three P2> hyphens: P2> P2> "---\n" P2> Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9912301707180.294-100000>