GNU logs - #9680, boring messages


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9680: [Bug 868747] Re: fmt -f <unlimited> should be supported
Resent-From: Jim Meyering <jim@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Thu, 06 Oct 2011 06:40:02 +0000
Resent-Message-ID: <handler.9680.B.13178832012861 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 9680
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: Bug 868747 <868747@HIDDEN>
Cc: 9680 <at> debbugs.gnu.org
X-Debbugs-Original-Cc: bug-coreutils@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.13178832012861
          (code B ref -1); Thu, 06 Oct 2011 06:40:02 +0000
Received: (at submit) by debbugs.gnu.org; 6 Oct 2011 06:40:01 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RBhcd-0000k3-IT
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2011 02:40:01 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jim@HIDDEN>) id 1RBhca-0000jp-Gp
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2011 02:39:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@HIDDEN>) id 1RBhcM-0002w3-VW
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2011 02:39:44 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:42598)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@HIDDEN>) id 1RBhcM-0002vz-Pq
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2011 02:39:42 -0400
Received: from eggs.gnu.org ([140.186.70.92]:52419)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@HIDDEN>) id 1RBhcK-0006iP-5w
	for bug-coreutils@HIDDEN; Thu, 06 Oct 2011 02:39:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@HIDDEN>) id 1RBhcJ-0002vl-76
	for bug-coreutils@HIDDEN; Thu, 06 Oct 2011 02:39:40 -0400
Received: from mx.meyering.net ([88.168.87.75]:60939)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@HIDDEN>) id 1RBhcI-0002vb-PA
	for bug-coreutils@HIDDEN; Thu, 06 Oct 2011 02:39:39 -0400
Received: from rho.meyering.net (localhost.localdomain [127.0.0.1])
	by rho.meyering.net (Acme Bit-Twister) with ESMTP id 41E5F6007C;
	Thu,  6 Oct 2011 08:39:37 +0200 (CEST)
From: Jim Meyering <jim@HIDDEN>
In-Reply-To: <20111005215957.26464.67334.malone@HIDDEN>
	(jimav's message of "Wed, 05 Oct 2011 21:59:54 -0000")
References: <20111005215955.26464.50560.malonedeb@HIDDEN>
	<20111005215957.26464.67334.malone@HIDDEN>
Date: Thu, 06 Oct 2011 08:39:37 +0200
Message-ID: <87zkhe1v4m.fsf@HIDDEN>
Lines: 60
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -4.9 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.0 (-----)

jimav wrote:
>   Strictly speaking this is an enhancement request.
>
>   fmt imposes an artificial limit on the maximum output line length
>   controlled by the -f option, which prevents using this tool to "join"

You meant -w, not -f, throughout.

Thanks for the suggestion.  Note that the code has this:

    /* Size of paragraph buffer, in words and characters.  Longer paragraphs
       are handled neatly (cf. flush_paragraph()), so long as these values
       are considerably greater than required by the width.  These values
       cannot be extended indefinitely: doing so would run into size limits
       and/or cause more overflows in cost calculations.  FIXME: Remove these
       arbitrary limits.  */

    #define MAXWORDS	1000
    #define MAXCHARS	5000

where MAXCHARS/2 specifies the largest width.
I.e., fmt -w 2500 works, but not 2501.

We agree that there should not be such a limit.
But the internals of fmt are not pretty -- significantly less
so than most other parts of the coreutils, and as the comment says
we cannot easily increase them arbitrarily.

In the mean time what can you do if you want truly unlimited-length
paragraphs?  It's not trivial since you want to retain paragraph delimiters.
This perl command should do the trick.
It processes your input a paragraph at a time, replacing each newline
(and spaces before/after) with a single space:

    perl -00ple 's/\s*\n\s*/ /g'

E.g., given this input,

1
2
3
4

1
2
3
4
5

It prints this:

    $ (seq 4; echo; seq 5) | perl -00ple 's/\s*\n\s*/ /g'
    1 2 3 4

    1 2 3 4 5

It doesn't preserve indentation, but if you're just going to
paste it into libreoffice, that should be fine.

I've Cc'd the upstream bug-tracker, so we'll have a bug number there, too.




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Jim Meyering <jim@HIDDEN>
Subject: bug#9680: Acknowledgement ([Bug 868747] Re: fmt -f <unlimited>
 should be supported)
Message-ID: <handler.9680.B.13178832012861.ack <at> debbugs.gnu.org>
References: <87zkhe1v4m.fsf@HIDDEN>
X-Gnu-PR-Message: ack 9680
X-Gnu-PR-Package: coreutils
Reply-To: 9680 <at> debbugs.gnu.org
Date: Thu, 06 Oct 2011 06:40:03 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-coreutils@HIDDEN

If you wish to submit further information on this problem, please
send it to 9680 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
9680: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9680
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


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


Received: (at control) by debbugs.gnu.org; 15 Oct 2018 14:13:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 15 10:13:20 2018
Received: from localhost ([127.0.0.1]:50862 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gC3cW-000774-6v
	for submit <at> debbugs.gnu.org; Mon, 15 Oct 2018 10:13:20 -0400
Received: from mail-pl1-f175.google.com ([209.85.214.175]:45083)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>) id 1gC3cV-00076p-2z
 for control <at> debbugs.gnu.org; Mon, 15 Oct 2018 10:13:19 -0400
Received: by mail-pl1-f175.google.com with SMTP id y15-v6so9369717plr.12
 for <control <at> debbugs.gnu.org>; Mon, 15 Oct 2018 07:13:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:from:message-id:date:user-agent:mime-version:content-language
 :content-transfer-encoding;
 bh=KRTO/lMyv85SRFjWFjpVk4xLiCSrzOVi3sXCR2A3yww=;
 b=R/b3U3xvIHl3b+NOSse5d9LrSblVEa5jQdTcIsl+upQdfmaDuweLk4SP6Irv+sMqY9
 PeY3DRV0yFUqheG9DkVu4fgNklUP2SDl5jdENKmlNLL9v1li2gOT1Xf/Na1eNhmhBZVl
 lhhK6JNn00JuV2lp+Cpn25jl5Jdcg/j7YWv4fyUwvkCB5gHu3bM9QCdX5HAP6BkIkF8R
 Prg2RFKXMUFNtfNC1EJu4I9vEEQCxODaxeFSWwFmxniuTwTTwIchpvGHlsvJB4sHtwda
 DhUd3KsE26SMAcPE7CCnfJ/bpPVXIvGJv+fHcR8zLScb1u1bJwywucwkqHsV8SnZzYyz
 BRoQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:from:message-id:date:user-agent:mime-version
 :content-language:content-transfer-encoding;
 bh=KRTO/lMyv85SRFjWFjpVk4xLiCSrzOVi3sXCR2A3yww=;
 b=c31ESg94VQWHsnzyQlkEQAjL4/DRNdaiF64e0WpheIprsAKzgeRz6MDol2GdER5bzF
 UK1k9mOMEEgCVRAKmMKCWwrYVSQIySq89hIjCTpSVv3CNmzWlSEmtoMNO+owAe9pSLLg
 a0yh4gYswvTxrZCT0IhryAfVj8DZkGYROQAAz1G9xi02xFB9QiNF6bKQLKmLlDnNLuC1
 j4ww/9m29ePNGyh8veAkDo4sUwI6wFgiFjyCEZub9tfUaypyOlhJXHAzWGEsjM2ylN+y
 NXt7BYEuRCoMeHhcgyZcSsHSJX+3w93f2VGir+bDrHdHoQ3g+Dkl04eoGz9F/9MdBGOy
 NFRQ==
X-Gm-Message-State: ABuFfoiX6adHOEmMYbNq8UAs2sBh1nDn4vDu5n+HfwVF/5Yq/uNHebkX
 MajAAT+a4fOSzj+N13+Qfv1hP7mH2G4=
X-Google-Smtp-Source: ACcGV61utTVJKvMn1mPiA7QBdnV7VyXlX+wqxiSsDA1G6vFqGe36QhJ1NHeK+Urkfpevvu4rqgr6Rw==
X-Received: by 2002:a17:902:40d:: with SMTP id
 13-v6mr17383766ple.257.1539612792534; 
 Mon, 15 Oct 2018 07:13:12 -0700 (PDT)
Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id
 o2-v6sm10750819pgp.82.2018.10.15.07.13.11
 for <control <at> debbugs.gnu.org>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 15 Oct 2018 07:13:11 -0700 (PDT)
To: control <at> debbugs.gnu.org
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <f077e2ea-a1c2-bd74-8e97-0005b428307c@HIDDEN>
Date: Mon, 15 Oct 2018 08:13:10 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.9.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 2.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: severity 9680 wishlist retitle 9680 fmt: -f <unlimited>
 should be supported stop [...] 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [209.85.214.175 listed in wl.mailspike.net]
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at http://www.dnswl.org/, no
 trust [209.85.214.175 listed in list.dnswl.org]
 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
 (assafgordon[at]gmail.com)
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.8 MISSING_SUBJECT        Missing Subject: header
 0.2 NO_SUBJECT             Extra score for no subject
X-Debbugs-Envelope-To: control
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: 1.0 (+)

severity 9680 wishlist
retitle 9680 fmt: -f <unlimited> should be supported
stop




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


Received: (at control) by debbugs.gnu.org; 15 Oct 2018 14:13:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 15 10:13:20 2018
Received: from localhost ([127.0.0.1]:50862 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gC3cW-000774-6v
	for submit <at> debbugs.gnu.org; Mon, 15 Oct 2018 10:13:20 -0400
Received: from mail-pl1-f175.google.com ([209.85.214.175]:45083)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>) id 1gC3cV-00076p-2z
 for control <at> debbugs.gnu.org; Mon, 15 Oct 2018 10:13:19 -0400
Received: by mail-pl1-f175.google.com with SMTP id y15-v6so9369717plr.12
 for <control <at> debbugs.gnu.org>; Mon, 15 Oct 2018 07:13:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:from:message-id:date:user-agent:mime-version:content-language
 :content-transfer-encoding;
 bh=KRTO/lMyv85SRFjWFjpVk4xLiCSrzOVi3sXCR2A3yww=;
 b=R/b3U3xvIHl3b+NOSse5d9LrSblVEa5jQdTcIsl+upQdfmaDuweLk4SP6Irv+sMqY9
 PeY3DRV0yFUqheG9DkVu4fgNklUP2SDl5jdENKmlNLL9v1li2gOT1Xf/Na1eNhmhBZVl
 lhhK6JNn00JuV2lp+Cpn25jl5Jdcg/j7YWv4fyUwvkCB5gHu3bM9QCdX5HAP6BkIkF8R
 Prg2RFKXMUFNtfNC1EJu4I9vEEQCxODaxeFSWwFmxniuTwTTwIchpvGHlsvJB4sHtwda
 DhUd3KsE26SMAcPE7CCnfJ/bpPVXIvGJv+fHcR8zLScb1u1bJwywucwkqHsV8SnZzYyz
 BRoQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:from:message-id:date:user-agent:mime-version
 :content-language:content-transfer-encoding;
 bh=KRTO/lMyv85SRFjWFjpVk4xLiCSrzOVi3sXCR2A3yww=;
 b=c31ESg94VQWHsnzyQlkEQAjL4/DRNdaiF64e0WpheIprsAKzgeRz6MDol2GdER5bzF
 UK1k9mOMEEgCVRAKmMKCWwrYVSQIySq89hIjCTpSVv3CNmzWlSEmtoMNO+owAe9pSLLg
 a0yh4gYswvTxrZCT0IhryAfVj8DZkGYROQAAz1G9xi02xFB9QiNF6bKQLKmLlDnNLuC1
 j4ww/9m29ePNGyh8veAkDo4sUwI6wFgiFjyCEZub9tfUaypyOlhJXHAzWGEsjM2ylN+y
 NXt7BYEuRCoMeHhcgyZcSsHSJX+3w93f2VGir+bDrHdHoQ3g+Dkl04eoGz9F/9MdBGOy
 NFRQ==
X-Gm-Message-State: ABuFfoiX6adHOEmMYbNq8UAs2sBh1nDn4vDu5n+HfwVF/5Yq/uNHebkX
 MajAAT+a4fOSzj+N13+Qfv1hP7mH2G4=
X-Google-Smtp-Source: ACcGV61utTVJKvMn1mPiA7QBdnV7VyXlX+wqxiSsDA1G6vFqGe36QhJ1NHeK+Urkfpevvu4rqgr6Rw==
X-Received: by 2002:a17:902:40d:: with SMTP id
 13-v6mr17383766ple.257.1539612792534; 
 Mon, 15 Oct 2018 07:13:12 -0700 (PDT)
Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id
 o2-v6sm10750819pgp.82.2018.10.15.07.13.11
 for <control <at> debbugs.gnu.org>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 15 Oct 2018 07:13:11 -0700 (PDT)
To: control <at> debbugs.gnu.org
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <f077e2ea-a1c2-bd74-8e97-0005b428307c@HIDDEN>
Date: Mon, 15 Oct 2018 08:13:10 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.9.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 2.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: severity 9680 wishlist retitle 9680 fmt: -f <unlimited>
 should be supported stop [...] 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [209.85.214.175 listed in wl.mailspike.net]
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at http://www.dnswl.org/, no
 trust [209.85.214.175 listed in list.dnswl.org]
 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
 (assafgordon[at]gmail.com)
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.8 MISSING_SUBJECT        Missing Subject: header
 0.2 NO_SUBJECT             Extra score for no subject
X-Debbugs-Envelope-To: control
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: 1.0 (+)

severity 9680 wishlist
retitle 9680 fmt: -f <unlimited> should be supported
stop





Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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