From unknown Wed Jun 18 23:17:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#58468 <58468@debbugs.gnu.org> To: bug#58468 <58468@debbugs.gnu.org> Subject: Status: bug in my tr, version (GNU coreutils) 9.1 Reply-To: bug#58468 <58468@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:17:22 +0000 retitle 58468 bug in my tr, version (GNU coreutils) 9.1 reassign 58468 coreutils submitter 58468 Anton Wessel severity 58468 normal tag 58468 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 12 09:19:15 2022 Received: (at submit) by debbugs.gnu.org; 12 Oct 2022 13:19:15 +0000 Received: from localhost ([127.0.0.1]:56132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oibdh-0002jp-Vj for submit@debbugs.gnu.org; Wed, 12 Oct 2022 09:19:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:56412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiO30-0007bS-4W for submit@debbugs.gnu.org; Tue, 11 Oct 2022 18:48:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiO2z-0000o7-GR for bug-coreutils@gnu.org; Tue, 11 Oct 2022 18:48:25 -0400 Received: from mailout03.t-online.de ([194.25.134.81]:51938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiO2m-0002KR-4J for bug-coreutils@gnu.org; Tue, 11 Oct 2022 18:48:25 -0400 Received: from fwd81.dcpf.telekom.de (fwd81.aul.t-online.de [10.223.144.107]) by mailout03.t-online.de (Postfix) with SMTP id 45D157B29 for ; Wed, 12 Oct 2022 00:48:09 +0200 (CEST) Received: from [192.168.178.21] ([82.135.81.102]) by fwd81.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1oiO2a-06FixU0; Wed, 12 Oct 2022 00:48:00 +0200 From: Anton Wessel To: Date: Wed, 12 Oct 2022 00:47:59 +0200 Message-ID: <183c93acae8.290c.4db2f0903e3357e02e1e905bf0d8e41b@t-online.de> User-Agent: AquaMail/1.38.1 (build: 103801197) Subject: bug in my tr, version (GNU coreutils) 9.1 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="183c93bbf4f1137290cad9e2c1" X-TOI-EXPURGATEID: 150726::1665528480-EEFEF7E2-91248C43/0/0 CLEAN NORMAL X-TOI-MSGID: 783a59e7-a327-4e8e-a6fd-1402889d9136 Received-SPF: none client-ip=194.25.134.81; envelope-from=Anton_Wessel@t-online.de; helo=mailout03.t-online.de 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 12 Oct 2022 09:19:12 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) This is a multi-part message in MIME format. --183c93bbf4f1137290cad9e2c1 Content-Type: text/plain; format=flowed; charset="UTF-8" Content-Transfer-Encoding: 8bit in OS KNOPPIX 9.1 your email: +++++ Verzeichnis: Anton_Wessel@t-onli…/INBOX Betreff: Welcome to the "Bug-coreutils" mailing list (Digest mode) Von: bug-coreutils-request@gnu.org An: Anton_Wessel@t-online.de Datum: 12. Okt. 00:19 Reply-To: bug-coreutils-request@gnu.org Message-ID: Größe: 3,29 KB ----- test: echo -e "a\n\nb" | tr -s '\n' or echo -e "a\n\nb" | tr -s '\n' '\n' both empty lines are removed, not only one. Please: is there a wayaround known? Regards Anton_Wessel@t-online.de --183c93bbf4f1137290cad9e2c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
in OS KNOPPIX 9.1

your email:<= /div>
+++++

Verze= ichnis: Anton_Wessel@t-onli=E2=80=A6/INBOX
Betreff: Welcome to the "Bug-coreutils" mailing list (Digest mode) Von: bug-coreutils-request@gnu.org
An: Anton_Wessel@t-online.de
Datum: 12. Okt.  00:19
Reply-To: bug-coreutils-request@gnu.org
Message-ID: <mailman.163.1665526797.1198.bug-coreutils@gnu.org>= ;
Gr=C3=B6=C3=9Fe: 3,29 KB

-----

test:

echo -e "a\n\nb" | tr -s '\n'

or

<= div dir=3D"auto">echo -e "a\n\nb" | tr -s '\n' '\n'
=
both empty lines are removed, not only one.

Please: is there a wayaroun= d known?


Regards

Ant= on_Wessel@t-online.de

--183c93bbf4f1137290cad9e2c1-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 12 10:21:32 2022 Received: (at 58468) by debbugs.gnu.org; 12 Oct 2022 14:21:32 +0000 Received: from localhost ([127.0.0.1]:58150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oicby-00077s-8v for submit@debbugs.gnu.org; Wed, 12 Oct 2022 10:21:32 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:37816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oicbw-00077Y-8Y for 58468@debbugs.gnu.org; Wed, 12 Oct 2022 10:21:28 -0400 Received: by mail-wm1-f46.google.com with SMTP id c7-20020a05600c0ac700b003c6cad86f38so1305982wmr.2 for <58468@debbugs.gnu.org>; Wed, 12 Oct 2022 07:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=NJy33bC9uJFTku+pOmvoUyaVpDb548KkNhFPFar9h4Q=; b=oR+TxAaTyJSYWBlEeEMHt/1Ej95LWUxmbPk1jgkLAMuBh5VDYzHF+MkFXnfKlffSFL xYJjwOdZWaD9/N/USO1XTBbw2gsdXF2H/DSDcm4knZ3e+dqbYMrCM3vfJg/MdVXLrlrf DO/V6dtHNkJieh2EKP5HaCIXususnUqalX4qmPf2+p98koa2eRKbzAIGH8DGN9UFRhtm X5/YRteFuC0SitZJclXiOzyyit7zd8HiicRX8JJMTxQgFr403rdNPtYwY6Wb69CP2aEA LDpoGI4R4q5gFqi4top9NK4DOLGcQY6gQiIsF7Pam2vkCDg4HYQduvgG5H9Jg7uB1qgT Hviw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NJy33bC9uJFTku+pOmvoUyaVpDb548KkNhFPFar9h4Q=; b=JbzovzF4+MSy6JZcxK9L/TcD7HEueKXQRgNU0QnkwhzTRRk4JArSGBvBaXeTyqqODn 1O6xvdKWmShaqWzcPq2HVqvo3yrJBbuwhL3/JcDRc+mfBf1nn/7OrTU0FE5NF6BtWbXQ 74Ib4TLvm+eEHEOdYTzmP2pqhUQU+89ywgyTgNPL0ioZkg4Lo94vZG2m6wv/wVssTCIE 0gud0+kVZVHPx8cIQ/uyP/PWRGS4I4fGfayVkjObUvtGG1oBvkN7xSFy3KLfVBq37F9S 1lueFcWsAtBBVy5lZjhVgukvjIaPyottwOouwApT5+2j06zNKYytJ1Phk+IuUIa6JDJo 9GgA== X-Gm-Message-State: ACrzQf3ObQnITQzQDWz/4qw559j63nW+GdRqJdsMgcsYwh2wacSeDOFV iMWIf6HRBUrggQJeMoK1XMxnTNTcEek= X-Google-Smtp-Source: AMsMyM4obc9YZODXfIN8SkyeGwa1N9JvBzfNyiKqyIq5wINPlUsQJx3bNeCe8H9BGeKYIZPZGPNPBA== X-Received: by 2002:a05:600c:1909:b0:3b4:aa30:40df with SMTP id j9-20020a05600c190900b003b4aa3040dfmr2967119wmq.205.1665584482305; Wed, 12 Oct 2022 07:21:22 -0700 (PDT) Received: from [192.168.23.100] (92.40.182.198.threembb.co.uk. [92.40.182.198]) by smtp.gmail.com with ESMTPSA id e1-20020a5d5941000000b0022af865810esm13861946wri.75.2022.10.12.07.21.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Oct 2022 07:21:21 -0700 (PDT) Subject: Re: bug#58468: bug in my tr, version (GNU coreutils) 9.1 To: Anton Wessel , 58468@debbugs.gnu.org References: <183c93acae8.290c.4db2f0903e3357e02e1e905bf0d8e41b@t-online.de> From: Chris Elvidge Message-ID: Date: Wed, 12 Oct 2022 15:21:16 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Lightning/5.4 MIME-Version: 1.0 In-Reply-To: <183c93acae8.290c.4db2f0903e3357e02e1e905bf0d8e41b@t-online.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Spam-Score: 3.0 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 11/10/2022 23:47, Anton Wessel wrote: > in OS KNOPPIX 9.1 > > your email: > +++++ > > Verzeichnis: Anton_Wessel@t-onli…/INBOX > Betreff: Welcome to the "Bug-coreutils" mailing list (Digest mode) [...] Content analysis details: (3.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [92.40.182.198 listed in zen.spamhaus.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (celvidge001[at]gmail.com) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (celvidge001[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.46 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.46 listed in wl.mailspike.net] -1.8 NICE_REPLY_A Looks like a legit reply (A) 1.0 FREEMAIL_REPLY From and body contain different freemails X-Debbugs-Envelope-To: 58468 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) On 11/10/2022 23:47, Anton Wessel wrote: > in OS KNOPPIX 9.1 > > your email: > +++++ > > Verzeichnis: Anton_Wessel@t-onli…/INBOX > Betreff: Welcome to the "Bug-coreutils" mailing list (Digest mode) > Von: bug-coreutils-request@gnu.org > An: Anton_Wessel@t-online.de > Datum: 12. Okt. 00:19 > Reply-To: bug-coreutils-request@gnu.org > Message-ID: > Größe: 3,29 KB > > > ----- > > test: > > echo -e "a\n\nb" | tr -s '\n' > > or > > echo -e "a\n\nb" | tr -s '\n' '\n' You have only one empty line! You need 3 \n to get two empty lines. $ echo -e "a\n\n\nb" a b > > both empty lines are removed, not only one. > > Please: is there a wayaround known? > > > Regards > > Anton_Wessel@t-online.de > > Put your output through hexdump -c You will see: $ echo -e "a\n\n\nb" | hexdump -c 0000000 a \n \n \n b \n 0000006 $ echo -e "a\n\n\nb" | tr -s '\n' | hexdump -c 0000000 a \n b \n 0000004 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 12 14:12:54 2022 Received: (at control) by debbugs.gnu.org; 12 Oct 2022 18:12:54 +0000 Received: from localhost ([127.0.0.1]:58406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oigDu-0004zw-Al for submit@debbugs.gnu.org; Wed, 12 Oct 2022 14:12:54 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:53788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oigDp-0004zc-7f for control@debbugs.gnu.org; Wed, 12 Oct 2022 14:12:53 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id ECC27160080 for ; Wed, 12 Oct 2022 11:12:43 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id eVoxfLa3XWpm for ; Wed, 12 Oct 2022 11:12:43 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 58641160082 for ; Wed, 12 Oct 2022 11:12:43 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu 58641160082 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1665598363; bh=lXZiQ2nsRPjGruRDFguHXFM2rbbjaFoc/xjs9hRGMpA=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type: Content-Transfer-Encoding; b=P9X7oCeYMQFOnZbjaOr2Kgp5arLdc9QgrP6LF2DM+sTQLBrPpZ8zVnwFZMJbtyxNx 4Z4f4ymLXQzigOiqZd7QapRLu0PRIJ7wCU/eemSOj+o5W5G0R4y33F2M6mblYGrSJM X0DVQ7z8dObWJaPSdEVyhIim0GmDwYCs2QYBlCG8= X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Mq0LUZJDNd0T for ; Wed, 12 Oct 2022 11:12:43 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 36E27160080 for ; Wed, 12 Oct 2022 11:12:43 -0700 (PDT) Message-ID: <7cdb26d8-9271-3573-3080-937455ebf2a4@cs.ucla.edu> Date: Wed, 12 Oct 2022 11:12:42 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Content-Language: en-US To: control@debbugs.gnu.org From: Paul Eggert Subject: 58468 is not a bug Organization: UCLA Computer Science Department Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 58468 notabug close 58468 From unknown Wed Jun 18 23:17:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 10 Nov 2022 12:24:12 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator