GNU bug report logs - #39868
Fix for diff -ZE behaviour

Previous Next

Package: diffutils;

Reported by: felix <felix.von.s <at> posteo.de>

Date: Mon, 2 Mar 2020 15:38:02 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: felix <felix.von.s <at> posteo.de>
To: bug-diffutils <at> gnu.org
Subject: Fix for diff -ZE behaviour
Date: Mon, 02 Mar 2020 08:29:57 +0000
[Message part 1 (text/plain, inline)]
Hello,

While combing through a collection of files, I noticed that whenever I 
called diff with both --ignore-trailing-space and 
--ignore-tab-expansion, the latter option was seemingly ignored. 
Initially I was worried that combining them was’t supported at all, 
even though the documentation suggested nothing of the sort. So I dug 
into the source code to see whether this was a feature omission or a 
bug. Half an hour later, I had a patch ready. Attached.

I don’t believe the patch needs copyright assignment, given that it 
changes just two lines and adds one. Though I figure writing some tests 
to cover this case is in order, which I did not do.

—f

[ignore_tabs_and_trailing_spaces.patch (text/x-patch, attachment)]

This bug report was last modified 5 years and 105 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.