GNU bug report logs - #72274
diff: option to ignore leading white space

Previous Next

Package: diffutils;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Wed, 24 Jul 2024 12:00:02 UTC

Severity: wishlist

Full log


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

From: Eric Deplagne <eric <at> deplagne.name>
To: Vincent Lefevre <vincent <at> vinc17.net>
Cc: 72274 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#72274: option to ignore leading white space
Date: Wed, 24 Jul 2024 23:15:27 +0200
On 2024-07-24 22:21, Vincent Lefevre wrote:
> On 2024-07-24 21:47:02 +0200, Eric Deplagne wrote:
>>   diff -w might be your friend.
>> 
>>   $ diff -wus <(printf "ab cd\n") <(printf " ab  cd \n")
>>   Les fichiers /dev/fd/63 et /dev/fd/62 sont identiques
> 
> But this one is wrong:
> 
> $ diff -wus <(printf "ab cd\n") <(printf " abcd \n")
> Files /proc/self/fd/11 and /proc/self/fd/14 are identical

  Wrong, indeed. :/

-- 
  Eric Deplagne




This bug report was last modified 326 days ago.

Previous Next


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