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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: diffutils; Severity: wishlist; Reported by: Vincent Lefevre <vincent@HIDDEN>; dated Wed, 24 Jul 2024 12:00:02 UTC; Maintainer for diffutils is bug-diffutils@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Vincent Lefevre <vincent@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Changed bug title to 'diff: option to ignore leading white space' from 'option to ignore leading white space' Request was from Vincent Lefevre <vincent@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Jul 2024 11:59:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 24 07:59:48 2024
Received: from localhost ([127.0.0.1]:33252 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWaeq-0007yn-9G
	for submit <at> debbugs.gnu.org; Wed, 24 Jul 2024 07:59:48 -0400
Received: from lists.gnu.org ([209.51.188.17]:49160)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vincent@HIDDEN>) id 1sWaeo-0007ye-2h
 for submit <at> debbugs.gnu.org; Wed, 24 Jul 2024 07:59:46 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <vincent@HIDDEN>)
 id 1sWaeh-0003Ro-Kc
 for bug-diffutils@HIDDEN; Wed, 24 Jul 2024 07:59:39 -0400
Received: from cventin.lip.ens-lyon.fr ([140.77.13.17])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <vincent@HIDDEN>)
 id 1sWaee-0000fw-Hg
 for bug-diffutils@HIDDEN; Wed, 24 Jul 2024 07:59:38 -0400
Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.98)
 (envelope-from <vincent@HIDDEN>) id 1sWaeb-00000000dGA-2eqq;
 Wed, 24 Jul 2024 13:59:33 +0200
Date: Wed, 24 Jul 2024 13:59:33 +0200
From: Vincent Lefevre <vincent@HIDDEN>
To: bug-diffutils@HIDDEN
Subject: option to ignore leading white space
Message-ID: <20240724115933.GF2858@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Mailer-Info: https://www.vinc17.net/mutt/
User-Agent: Mutt/2.2.13+77 (9dc98409) vl-169878 (2024-06-20)
Received-SPF: pass client-ip=140.77.13.17; envelope-from=vincent@HIDDEN;
 helo=cventin.lip.ens-lyon.fr
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

There should be an option to ignore leading white space, like
there is one for trailing white space, and it should probably
be integrated in the -b option.

Basically, I'd like to be able to get only lines that differ by words.

Currently:

cventin:~> diff -bu <(printf "ab cd\n") <(printf " ab  cd \n")
--- /proc/self/fd/11    2024-07-24 13:58:43.515131625 +0200
+++ /proc/self/fd/14    2024-07-24 13:58:43.515131625 +0200
@@ -1 +1 @@
-ab cd
+ ab  cd 

-- 
Vincent Lefèvre <vincent@HIDDEN> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




Acknowledgement sent to Vincent Lefevre <vincent@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-diffutils@HIDDEN. Full text available.
Report forwarded to bug-diffutils@HIDDEN:
bug#72274; Package diffutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 24 Jul 2024 12:15:02 UTC

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