[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patch: do not emit trailing blanks in context header
From: |
Paul Eggert |
Subject: |
Re: patch: do not emit trailing blanks in context header |
Date: |
Tue, 05 Sep 2006 10:15:07 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Jim Meyering <address@hidden> writes:
> Do you mean that you *can* fix it for diff -u ?
I proposed a spec for diff -u requiring a trailing space to the POSIX
folks and it was accepted for draft 2 of the next version (see XCU ERN 103 in
<http://www.opengroup.org/austin/aardvark/latest/xcubug2.txt>)
We could try to get the spec updated. I guess this wording:
Each unaffected line shall be written in the following
format:
"^%s", <unaffected_line>
where the contents of the unaffected line shall be taken from
file1.
would be replaced by:
Each nonempty unaffected line shall be written in the following
format:
"^%s", <unaffected_line>
where the contents of the unaffected line shall be taken from
file1. Each empty unaffected line shall be written as either
an empty line, or a line containing a single space character.
Do you think this change is worth pursuing?
All programs reading patches that I know of treat empty lines the same
as lines containing a single space, due to the usual problems of
stripping trailing white space, so I don't think this will pose much
of a hardship in real life.
- patch: do not emit trailing blanks in context header, Jim Meyering, 2006/09/04
- Re: patch: do not emit trailing blanks in context header, Paul Eggert, 2006/09/05
- Re: patch: do not emit trailing blanks in context header,
Paul Eggert <=
- Re: patch: do not emit trailing blanks in context header, Jim Meyering, 2006/09/05
- Re: patch: do not emit trailing blanks in context header, Chuck Swiger, 2006/09/05
- Re: patch: do not emit trailing blanks in context header, Paul Eggert, 2006/09/05
- Re: patch: do not emit trailing blanks in context header, Jim Meyering, 2006/09/06