WTF?
Paolo Bonzini
bonzini@gnu.org
Thu Nov 26 08:56:00 GMT 2009
On 11/26/2009 12:20 AM, Alexandre Oliva wrote:
> sed -i 's,[ \t]*$,,' probably won't work, if there are all-blanks lines
> being left alone in the patch (so the rx will match the patch markers
> too), but something slightly more elaborate preserving a fixed number of
> leading blanks dependng on the patch type (context or unified) should:
Actually an empty line is considered by patch(1) the same way as a line
containing only a space (or two spaces for context diffs), because there
are many mailers that strip trailing whitespace.
Paolo
More information about the Gcc
mailing list