GNU bug report logs - #63553
diff command: issue with -B option (--ignore-blank-lines)

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; Reported by: Alex Escodro <scdrdev@HIDDEN>; Keywords: notabug; Done: Carlo Arenas <carenas@HIDDEN>; Maintainer for diffutils is bug-diffutils@HIDDEN.
bug closed, send any further explanations to 63553 <at> debbugs.gnu.org and Alex Escodro <scdrdev@HIDDEN> Request was from Carlo Arenas <carenas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) notabug. Request was from Carlo Arenas <carenas@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; 17 May 2023 13:14:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 17 09:14:18 2023
Received: from localhost ([127.0.0.1]:49264 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pzGyv-0006BG-Ke
	for submit <at> debbugs.gnu.org; Wed, 17 May 2023 09:14:17 -0400
Received: from lists.gnu.org ([209.51.188.17]:37236)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <scdrdev@HIDDEN>) id 1pzCD3-0002jB-Ej
 for submit <at> debbugs.gnu.org; Wed, 17 May 2023 04:08:36 -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 <scdrdev@HIDDEN>) id 1pzCCv-0004WB-Pj
 for bug-diffutils@HIDDEN; Wed, 17 May 2023 04:08:25 -0400
Received: from mail-ej1-x643.google.com ([2a00:1450:4864:20::643])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <scdrdev@HIDDEN>) id 1pzCCt-00026Q-Ey
 for bug-diffutils@HIDDEN; Wed, 17 May 2023 04:08:24 -0400
Received: by mail-ej1-x643.google.com with SMTP id
 a640c23a62f3a-96aae59bbd6so75954566b.3
 for <bug-diffutils@HIDDEN>; Wed, 17 May 2023 01:08:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1684310900; x=1686902900;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=9aSpAt9D7wrToeE/ppUztIr9hO52CJECOtE1T7bBoWs=;
 b=IXUHsSiwTaVLqUjL2pZHcf3Esi9jNHdbFlxNErun4ilk5oWyQHqmwYhPZ/oyQKXnmF
 /xJYkiNFcC7rG4+XXhCyct1P4k8o4O23sg93F/PJOAglSUVjy1LyxLPws+67da54B5Wn
 ZIxry+5DZFQjEAVtO/eQMUd04MLTUeDqP8jT0Kot3xiGBc0OG/i/WZTeT7yU6DP+Insv
 AWo1eYsph6jarpIyZWaoLTheSXypjC6Dh6a2ofB2rDRitTmeHMbMOxmX4x4zAKvvkvYw
 wf2YAl6PCGI8rGWrx95h6nH8bFU9jT+Rdt86wxLrIxiL4lBzvWE2I5/ZbDjCEbrcTnhv
 ZoCA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1684310900; x=1686902900;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=9aSpAt9D7wrToeE/ppUztIr9hO52CJECOtE1T7bBoWs=;
 b=Cef4yUZddR2YBbPUcaf+S84wmYeyuE/z8nlDbt89DDLKV/kjWLM9XRSpg/wF7iUcp5
 B6GHbiWWOFeLDBG9j4DMMPe2n8seqe5dCPGWFO3twm7Xn3qA4v1qBmISUgUWB5E5zwR4
 cZpUByct6HF7QpAEnT4wZmizEZezn1aKq/+Vmk2JMDJgwHQO8F6BXeasrqPi/xFMMe85
 k7nT3LzAo/NckbhC412B/MEDy1Oi1JYwHEWZsuMkWsUqHzvo7FR8eg4nz+2O1EEUz4EX
 /E9xKh+LnlSeM8oxSjw4Q5XRzOwgpwa7N8QBBOealEWTqOAQFl2OxL/P0UZygvPUXi5a
 5/qg==
X-Gm-Message-State: AC+VfDxXaGH7wIAmYLlxMGYjZ8tL69ht1I+BZqH/fk9fZM2RSeEuF3S8
 cWmx8JZ7fdoDPRRNzs49oTBezINy7I92+VXIi0Ke7cmivdMElPqcfo0=
X-Google-Smtp-Source: ACHHUZ7lKY1V+85zeh4QgveRs50+Ef/y4/UNFjYDX3AVIACmI+oecdy0qpBmsUOilYMAxaUa3dYHY5l9MjVRCG8nUcE=
X-Received: by 2002:a17:906:4fd1:b0:961:8d21:a471 with SMTP id
 i17-20020a1709064fd100b009618d21a471mr37791828ejw.58.1684310900408; Wed, 17
 May 2023 01:08:20 -0700 (PDT)
MIME-Version: 1.0
From: Alex Escodro <scdrdev@HIDDEN>
Date: Wed, 17 May 2023 05:08:20 -0300
Message-ID: <CAHvV4V68HDZDd_=Oxqk82oR-y8aUpsiFesCPt698HD0aG76pRQ@HIDDEN>
Subject: diff command: issue with -B option (--ignore-blank-lines)
To: bug-diffutils@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000e9087205fbdf301d"
Received-SPF: pass client-ip=2a00:1450:4864:20::643;
 envelope-from=scdrdev@HIDDEN; helo=mail-ej1-x643.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 17 May 2023 09:14:16 -0400
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: -2.3 (--)

--000000000000e9087205fbdf301d
Content-Type: text/plain; charset="UTF-8"

Hello and good morning!

I'm a software developer improving my skills in linux shell programming,
and while experimenting with diff I came across a situation where blank
lines seem to not be ignored even though -B (or --ignore-blank-lines)
option is used.

I am not sure if it is a bug or some aspect of diff's output technically
referred to as "normal".

I posted a question to Stackoverflow containing detailed information to
reproduce the issue:
https://stackoverflow.com/questions/76269590/why-does-linux-shell-diff-command-sometimes-show-output-related-to-empty-lines-e

Thanks, and best regards

--000000000000e9087205fbdf301d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello and good morning!<br></div><div><br></div><div>=
I&#39;m a software developer improving my skills in linux shell programming=
, and while experimenting with diff I came across a situation where blank=
=20
lines seem to not be ignored even though -B (or --ignore-blank-lines)=20
option is used.</div><div><br></div><div>I am not sure if it is a bug or so=
me aspect of diff&#39;s output technically referred to as &quot;normal&quot=
;.</div><div><br></div><div>I posted a question to Stackoverflow containing=
 detailed information to reproduce the issue:<br></div><div><a href=3D"http=
s://stackoverflow.com/questions/76269590/why-does-linux-shell-diff-command-=
sometimes-show-output-related-to-empty-lines-e">https://stackoverflow.com/q=
uestions/76269590/why-does-linux-shell-diff-command-sometimes-show-output-r=
elated-to-empty-lines-e</a><br><br></div><div>Thanks, and best regards<br><=
/div></div>

--000000000000e9087205fbdf301d--




Acknowledgement sent to Alex Escodro <scdrdev@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-diffutils@HIDDEN. Full text available.
Report forwarded to bug-diffutils@HIDDEN:
bug#63553; 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: Sat, 27 May 2023 06:30:02 UTC

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