From unknown Mon Jun 16 23:42:41 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#27128 <27128@debbugs.gnu.org> To: bug#27128 <27128@debbugs.gnu.org> Subject: Status: fold -b wants no immediate space, otherwise mistakes number as filename Reply-To: bug#27128 <27128@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:42:41 +0000 retitle 27128 fold -b wants no immediate space, otherwise mistakes number a= s filename reassign 27128 coreutils submitter 27128 openforum@davidpbrown.co.uk severity 27128 normal tag 27128 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Mon May 29 11:59:46 2017 Received: (at submit) by debbugs.gnu.org; 29 May 2017 15:59:46 +0000 Received: from localhost ([127.0.0.1]:43522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFN57-0003Wm-NS for submit@debbugs.gnu.org; Mon, 29 May 2017 11:59:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34821) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFMpv-0003B2-Iy for submit@debbugs.gnu.org; Mon, 29 May 2017 11:44:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFMpf-0000qQ-V1 for submit@debbugs.gnu.org; Mon, 29 May 2017 11:43:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49077) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dFMpf-0000qF-RO for submit@debbugs.gnu.org; Mon, 29 May 2017 11:43:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFMpe-00045u-QB for bug-coreutils@gnu.org; Mon, 29 May 2017 11:43:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFMpZ-0000nZ-UW for bug-coreutils@gnu.org; Mon, 29 May 2017 11:43:46 -0400 Received: from solstice.linksky124.com ([184.173.222.93]:35436) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dFMpZ-0000Ne-OM for bug-coreutils@gnu.org; Mon, 29 May 2017 11:43:41 -0400 Received: from [134.19.180.169] (port=53350 helo=[10.7.7.4]) by solstice.linksky124.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1dFMop-001VYG-Mv for bug-coreutils@gnu.org; Mon, 29 May 2017 11:42:55 -0400 To: bug-coreutils@gnu.org From: davidpbrown Subject: fold -b wants no immediate space, otherwise mistakes number as filename Message-ID: <1195b71e-6546-7a06-cc4d-5aeea466f78d@davidpbrown.co.uk> Date: Mon, 29 May 2017 16:42:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-LinkSkyHosting-MailScanner-Information: Please contact the ISP for more information X-LinkSkyHosting-MailScanner-ID: 1dFMop-001VYG-Mv X-LinkSkyHosting-MailScanner: Found to be clean X-LinkSkyHosting-MailScanner-SpamCheck: X-LinkSkyHosting-MailScanner-From: openforum@davidpbrown.co.uk X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - solstice.linksky124.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - davidpbrown.co.uk X-Get-Message-Sender-Via: solstice.linksky124.com: authenticated_id: bartender@davidpbrown.co.uk X-Authenticated-Sender: solstice.linksky124.com: bartender@davidpbrown.co.uk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 29 May 2017 11:59:43 -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: , Reply-To: openforum@davidpbrown.co.uk Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) coreutils v 8.25-2ubuntu2 fold -b error wanting no space before the number, inconsistent with expectation and -w Error: $ echo "abcdefghijklm" | fold -b 6 fold: 6: No such file or directory inconsistent with -w $ echo "abcdefghijklm" | fold -w6 abcdef ghijkl m $ echo "abcdefghijklm" | fold -w 6 abcdef ghijkl m but works with: $ echo "abcdefghijklm" | fold -b6 abcdef ghijkl m Regards davidpbrown From debbugs-submit-bounces@debbugs.gnu.org Mon May 29 15:31:23 2017 Received: (at 27128) by debbugs.gnu.org; 29 May 2017 19:31:23 +0000 Received: from localhost ([127.0.0.1]:43765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFQNu-0003k7-IJ for submit@debbugs.gnu.org; Mon, 29 May 2017 15:31:23 -0400 Received: from mail.magicbluesmoke.com ([82.195.144.49]:51886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFQNq-0003jx-W6 for 27128@debbugs.gnu.org; Mon, 29 May 2017 15:31:19 -0400 Received: from localhost.localdomain (mobile-166-137-177-171.mycingular.net [166.137.177.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.magicbluesmoke.com (Postfix) with ESMTPSA id B568D9566; Mon, 29 May 2017 20:31:16 +0100 (IST) Subject: Re: bug#27128: fold -b wants no immediate space, otherwise mistakes number as filename To: openforum@davidpbrown.co.uk, 27128@debbugs.gnu.org References: <1195b71e-6546-7a06-cc4d-5aeea466f78d@davidpbrown.co.uk> From: =?UTF-8?Q?P=c3=a1draig_Brady?= Message-ID: <42a13269-cdb5-1368-438a-d151ac072ea7@draigBrady.com> Date: Mon, 29 May 2017 12:31:13 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1195b71e-6546-7a06-cc4d-5aeea466f78d@davidpbrown.co.uk> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 27128 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: 0.0 (/) tag 27128 notabug close 27128 stop On 29/05/17 08:42, davidpbrown wrote: > coreutils v 8.25-2ubuntu2 > > fold -b error wanting no space before the number, inconsistent with > expectation and -w > > > Error: > > $ echo "abcdefghijklm" | fold -b 6 > fold: 6: No such file or directory > > > inconsistent with -w > > $ echo "abcdefghijklm" | fold -w6 > abcdef > ghijkl > m > > $ echo "abcdefghijklm" | fold -w 6 > abcdef > ghijkl > m > > > but works with: > > $ echo "abcdefghijklm" | fold -b6 > abcdef > ghijkl > m What's happening here is that fold(1) supports arguments of the form `fold -80`. That's undocumented since it's legacy and supported only for compat with old scripts. Therefore -b6 is equivalent to -b -6 which is supported: $ echo "abcdefghijklm" | src/fold -b -6 abcdef ghijkl m The documented form for what you want to do is: echo "abcdefghijklm" | src/fold -b -w6 abcdef ghijkl m thanks, Pádraig From debbugs-submit-bounces@debbugs.gnu.org Mon May 29 16:05:03 2017 Received: (at control) by debbugs.gnu.org; 29 May 2017 20:05:03 +0000 Received: from localhost ([127.0.0.1]:43806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFQuV-0006KJ-7y for submit@debbugs.gnu.org; Mon, 29 May 2017 16:05:03 -0400 Received: from mail.magicbluesmoke.com ([82.195.144.49]:52022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFQuU-0006Jx-5x for control@debbugs.gnu.org; Mon, 29 May 2017 16:05:02 -0400 Received: from localhost.localdomain (mobile-166-137-177-171.mycingular.net [166.137.177.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.magicbluesmoke.com (Postfix) with ESMTPSA id 1893F89 for ; Mon, 29 May 2017 21:05:00 +0100 (IST) To: GNU bug tracker automated control server From: =?UTF-8?Q?P=c3=a1draig_Brady?= Message-ID: Date: Mon, 29 May 2017 13:04:58 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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: tag 27109 notabug close 27109 tag 27128 notabug close 27128 tag 27129 notabug close 27129 [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 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@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: 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: tag 27109 notabug close 27109 tag 27128 notabug close 27128 tag 27129 notabug close 27129 [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject tag 27109 notabug close 27109 tag 27128 notabug close 27128 tag 27129 notabug close 27129 From unknown Mon Jun 16 23:42:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 27 Jun 2017 11:24:05 +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