From unknown Sun Jun 22 07:36:08 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#21356 <21356@debbugs.gnu.org> To: bug#21356 <21356@debbugs.gnu.org> Subject: Status: BUG: split shorter version of '--numeric-suffixes' give error Reply-To: bug#21356 <21356@debbugs.gnu.org> Date: Sun, 22 Jun 2025 14:36:08 +0000 retitle 21356 BUG: split shorter version of '--numeric-suffixes' give error reassign 21356 coreutils submitter 21356 Tareque Md Khan severity 21356 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 18:21:09 2015 Received: (at submit) by debbugs.gnu.org; 26 Aug 2015 22:21:09 +0000 Received: from localhost ([127.0.0.1]:39318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUj48-0004Sm-I6 for submit@debbugs.gnu.org; Wed, 26 Aug 2015 18:21:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39632) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUhwY-0002YP-4h for submit@debbugs.gnu.org; Wed, 26 Aug 2015 17:09:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUhwX-0003yR-Af for submit@debbugs.gnu.org; Wed, 26 Aug 2015 17:09:14 -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.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUhwX-0003yM-7h for submit@debbugs.gnu.org; Wed, 26 Aug 2015 17:09:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUhwW-0006wj-C0 for bug-coreutils@gnu.org; Wed, 26 Aug 2015 17:09:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUhwS-0003xa-Cl for bug-coreutils@gnu.org; Wed, 26 Aug 2015 17:09:12 -0400 Received: from mail-yk0-x22a.google.com ([2607:f8b0:4002:c07::22a]:33957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUhwS-0003xU-7z for bug-coreutils@gnu.org; Wed, 26 Aug 2015 17:09:08 -0400 Received: by ykdt205 with SMTP id t205so201692758ykd.1 for ; Wed, 26 Aug 2015 14:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=UTeSJ+BYTAlmiyyMFzLimHprIZEt3nZIgkvs/5xE0V4=; b=D99D0fQGcx7UFZSozsJCo4FmciUgzXmWBlVWXXeNebnsF6mj1EHCOG9om71awvb/h/ AGnxZ1oeTOOf8OFiz331n4XjO1MtnepAvcOltqgSn+1xjHwS0hlBSUumCD0roZDALQaN LHlEZ6mJ6e9nEjbYbZR1A2mAX/RNKeAxafItjwbxsUb48R2dQuLJ12Qu7F/5LEVAI0gv 4+pv+Zy10zOJGjBkIMrTxjy2arTqqNkVVW6FtFKCo2fTzM7SnyL0X87SH2HowvDoIE7B bjJyQY/6EBzJ1hzYhVyPu1QAZbLvYWfqdff0SSukVe83lnNGU9YlpmtbqKJexfDtoVLU 4KJA== X-Received: by 10.170.74.130 with SMTP id q124mr571142ykq.120.1440623347382; Wed, 26 Aug 2015 14:09:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.214.21 with HTTP; Wed, 26 Aug 2015 14:08:48 -0700 (PDT) From: Tareque Md Khan Date: Thu, 27 Aug 2015 02:38:48 +0530 Message-ID: Subject: BUG: split shorter version of '--numeric-suffixes' give error To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary=001a113a4a4ce04471051e3d4280 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 26 Aug 2015 18:21:07 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) --001a113a4a4ce04471051e3d4280 Content-Type: text/plain; charset=UTF-8 Hi, My first bug-reporting. I discovered a *cosmetic* bug in 'split' command. I wanted to split a file in 'n' chunks, with suffix 'a' chars wide and numeric suffix starting from 'd'. I tried $ split -n10 -a4 -d5 echo.txt split: cannot split in more than one way Try 'split --help' for more information. where as using longer option for `-d` i.e. `--numeric-suffixes` works fine. $ split -n10 -a4 --numeric-suffixes=5 echo.txt FYI: I had asked it on unix.stackexchange as well, for reference http://unix.stackexchange.com/q/225704/17265 -Thanks, Md Tareque Khan --001a113a4a4ce04471051e3d4280 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

My first bug-reportin= g.

I discovered a cosmetic bug in 'split' comma= nd. I wanted to split a file in 'n' chunks, with suffix 'a'= chars wide and numeric suffix starting from 'd'. I tried

$ = split -n10 -a4 -d5 echo.txt
split: cannot split in more than one wayTry 'split --help' for more information.

where as usi= ng longer option for `-d` i.e. `--numeric-suffixes` works fine.

$ sp= lit -n10 -a4 --numeric-suffixes=3D5 echo.txt


FYI: I had as= ked it on unix.stackexchange as well, for reference http://unix.stackexchange.com/q/225704/17= 265

-Thanks,
Md Tareque Khan
--001a113a4a4ce04471051e3d4280-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 19:05:53 2015 Received: (at 21356) by debbugs.gnu.org; 26 Aug 2015 23:05:53 +0000 Received: from localhost ([127.0.0.1]:39334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUjlR-000784-8m for submit@debbugs.gnu.org; Wed, 26 Aug 2015 19:05:53 -0400 Received: from mail1.vodafone.ie ([213.233.128.43]:26364) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUjlO-00077t-SP for 21356@debbugs.gnu.org; Wed, 26 Aug 2015 19:05:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmoFADlF3lVtTJcv/2dsb2JhbABdgklSHzVqgyK8WIV4AQICgTZMAQEBAQEBgQuEJAEBBCMPAVYLDQsCAgUWCwICCQMCAQIBRQYBDAgBAYguAQi0B4VvjxIBK4EiijmFEYJpgUMFlTyFBol8hn6RUCaEAD2DAAEBAQ Received: from unknown (HELO localhost.localdomain) ([109.76.151.47]) by mail1.vodafone.ie with ESMTP; 27 Aug 2015 00:05:49 +0100 Message-ID: <55DE464D.6090004@draigBrady.com> Date: Thu, 27 Aug 2015 00:05:49 +0100 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Tareque Md Khan , 21356@debbugs.gnu.org Subject: Re: bug#21356: BUG: split shorter version of '--numeric-suffixes' give error References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21356 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 21356 notabug close 21356 stop On 26/08/15 22:08, Tareque Md Khan wrote: > Hi, > > My first bug-reporting. > > I discovered a /cosmetic/ bug in 'split' command. I wanted to split a file in 'n' chunks, with suffix 'a' chars wide and numeric suffix starting from 'd'. I tried > > $ split -n10 -a4 -d5 echo.txt > split: cannot split in more than one way > Try 'split --help' for more information. > > where as using longer option for `-d` i.e. `--numeric-suffixes` works fine. > > $ split -n10 -a4 --numeric-suffixes=5 echo.txt > > > FYI: I had asked it on unix.stackexchange as well, for reference http://unix.stackexchange.com/q/225704/17265 -d can't take an _optional_ argument for backwards compat and operational reasons. I.E. generally short options can't take an optional argument due to ambiguities that would introduce. The particular ambiguity in this case is that -d5 is equivalent to -d -5, which is equivalent to -d -l5, hence the error. thanks, Pádraig. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 27 08:06:20 2015 Received: (at 21356) by debbugs.gnu.org; 27 Aug 2015 12:06:20 +0000 Received: from localhost ([127.0.0.1]:39822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUvwh-0003oO-KA for submit@debbugs.gnu.org; Thu, 27 Aug 2015 08:06:19 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:36652) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUvwe-0003oD-TP for 21356@debbugs.gnu.org; Thu, 27 Aug 2015 08:06:17 -0400 Received: by wicgk12 with SMTP id gk12so6421411wic.1 for <21356@debbugs.gnu.org>; Thu, 27 Aug 2015 05:06:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Ow1fkzwxOQZi3YQiFTWio5Jcm4/aG6RxpORfcfvxjLo=; b=hlMs/+dCmZr+a0xXaZ4dNONe/GhxacP92smv+b0+KMlPk2zbrd2/Xx/syRhzKGte2F dAudwofpUJy3p2/d3dlh739B3SSMbe5GafEbchKDWXiku3zwcXyBsGgPvLExsdZrVWLG DN+XKE95f3R2heFeujlyLLVjfglPUusFZTpn4Me7ifQlyvUsGW2x7KrU6Tj59w388W6x 9aaVj4boJ3R/vJbYR3Lx1HhXZJ2i31GslOMDl8SEsITU6kgivmpuqX+IDhBI+CiJxkw/ 62zReUtbVR0j+yhQU2L9qsrviGGajQRROehflGKqBB4BhOln/mnIOBC1V5Y6QlusFJNY au8A== X-Received: by 10.180.81.67 with SMTP id y3mr19294859wix.42.1440677176276; Thu, 27 Aug 2015 05:06:16 -0700 (PDT) Received: from chaz.gmail.com (05448dab.skybroadband.com. [5.68.141.171]) by smtp.gmail.com with ESMTPSA id pe1sm12300761wic.20.2015.08.27.05.06.15 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 27 Aug 2015 05:06:15 -0700 (PDT) Date: Thu, 27 Aug 2015 13:06:14 +0100 From: Stephane Chazelas To: =?iso-8859-1?Q?P=E1draig?= Brady Subject: Re: bug#21356: BUG: split shorter version of '--numeric-suffixes' give error Message-ID: <20150827120614.GA5147@chaz.gmail.com> References: <55DE464D.6090004@draigBrady.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <55DE464D.6090004@draigBrady.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21356 Cc: 21356@debbugs.gnu.org, Tareque Md Khan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) 2015-08-27 00:05:49 +0100, Pádraig Brady: [...] > > $ split -n10 -a4 -d5 echo.txt > > split: cannot split in more than one way > > Try 'split --help' for more information. > > > > where as using longer option for `-d` i.e. `--numeric-suffixes` works fine. > > > > $ split -n10 -a4 --numeric-suffixes=5 echo.txt > > > > > > FYI: I had asked it on unix.stackexchange as well, for reference http://unix.stackexchange.com/q/225704/17265 > > -d can't take an _optional_ argument for backwards compat > and operational reasons. I.E. generally short options > can't take an optional argument due to ambiguities that would introduce. > > The particular ambiguity in this case is that -d5 is equivalent > to -d -5, which is equivalent to -d -l5, hence the error. [...] Note that GNU getopt supports short options with optional arguments (though doesn't allow an empty argument like the long option version). The split documentation could be improved to avoid this kind of confusion: info page: `-l LINES' `--lines=LINES' Put LINES lines of INPUT into each output file. For compatibility `split' also supports an obsolete option syntax `-LINES'. New scripts should use `-l LINES' instead. [...] `-d' `--numeric-suffixes[=FROM]' Use digits in suffixes rather than lower-case letters. The numerical suffix counts from FROM if specified, 0 otherwise. Note specifying a FROM value also disables the default auto suffix length expansion described above, and so you may also want to specify `-a' to allow suffixes beyond `99'. It's easy to miss that it's not `-d[FROM]` here. A note along these lines could help: "Note that the FROM value can only be specified with the long option from." For the --help output (in English at least), the distinction doesn't appear: -d, --numeric-suffixes[=FROM] use numeric suffixes instead of alphabetic. FROM changes the start value (default 0). [...] -l, --lines=NUMBER put NUMBER lines per output file Can't tell from that that -d5 wouldn't work. -- Stephane From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 27 11:19:15 2015 Received: (at 21356) by debbugs.gnu.org; 27 Aug 2015 15:19:16 +0000 Received: from localhost ([127.0.0.1]:40421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUyxP-0000Bb-0q for submit@debbugs.gnu.org; Thu, 27 Aug 2015 11:19:15 -0400 Received: from mail2.vodafone.ie ([213.233.128.44]:2554) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUyxM-0000BR-28 for 21356@debbugs.gnu.org; Thu, 27 Aug 2015 11:19:13 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkIGACQq31VtT0TO/2dsb2JhbABdgklSHzVpAYJUvSaFdgECAoEwTAEBAQEBAYELhCQBAQQyAUYQCw0LCRYPCQMCAQIBRQYNAQcBAYguAQi5GY8MAQEBBwIBH4thhQsHhCwFlT2FBol9hn6RUiaEAD00AYJLAQEB Received: from unknown (HELO localhost.localdomain) ([109.79.68.206]) by mail2.vodafone.ie with ESMTP; 27 Aug 2015 16:18:52 +0100 Message-ID: <55DF2A5B.6030300@draigBrady.com> Date: Thu, 27 Aug 2015 16:18:51 +0100 From: =?windows-1252?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Stephane Chazelas Subject: Re: bug#21356: BUG: split shorter version of '--numeric-suffixes' give error References: <55DE464D.6090004@draigBrady.com> <20150827120614.GA5147@chaz.gmail.com> In-Reply-To: <20150827120614.GA5147@chaz.gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21356 Cc: 21356@debbugs.gnu.org, Tareque Md Khan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (/) On 27/08/15 13:06, Stephane Chazelas wrote: > 2015-08-27 00:05:49 +0100, Pádraig Brady: > [...] >>> $ split -n10 -a4 -d5 echo.txt >>> split: cannot split in more than one way >>> Try 'split --help' for more information. >>> >>> where as using longer option for `-d` i.e. `--numeric-suffixes` works fine. >>> >>> $ split -n10 -a4 --numeric-suffixes=5 echo.txt >>> >>> >>> FYI: I had asked it on unix.stackexchange as well, for reference http://unix.stackexchange.com/q/225704/17265 >> >> -d can't take an _optional_ argument for backwards compat >> and operational reasons. I.E. generally short options >> can't take an optional argument due to ambiguities that would introduce. >> >> The particular ambiguity in this case is that -d5 is equivalent >> to -d -5, which is equivalent to -d -l5, hence the error. > [...] > > Note that GNU getopt supports short options with optional > arguments (though doesn't allow an empty argument like the long > option version). > > The split documentation could be improved to avoid this kind of > confusion: > > info page: > > `-l LINES' > `--lines=LINES' > Put LINES lines of INPUT into each output file. > > For compatibility `split' also supports an obsolete option syntax > `-LINES'. New scripts should use `-l LINES' instead. > [...] > `-d' > `--numeric-suffixes[=FROM]' > Use digits in suffixes rather than lower-case letters. The > numerical suffix counts from FROM if specified, 0 otherwise. Note > specifying a FROM value also disables the default auto suffix > length expansion described above, and so you may also want to > specify `-a' to allow suffixes beyond `99'. > > It's easy to miss that it's not `-d[FROM]` here. A note along > these lines could help: > > "Note that the FROM value can only be specified with the long > option from." Done at: http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=da5505dd7f I can't think of any suitably terse improvements for the man page. thanks, Pádraig. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 27 15:43:22 2015 Received: (at 21356) by debbugs.gnu.org; 27 Aug 2015 19:43:22 +0000 Received: from localhost ([127.0.0.1]:40589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZV34z-0001yv-Un for submit@debbugs.gnu.org; Thu, 27 Aug 2015 15:43:22 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:36577) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZV34y-0001ym-Fh for 21356@debbugs.gnu.org; Thu, 27 Aug 2015 15:43:21 -0400 Received: by wicgk12 with SMTP id gk12so2043723wic.1 for <21356@debbugs.gnu.org>; Thu, 27 Aug 2015 12:43:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=OGUOnjZ6xPe4ys3vOWYEITV7j0KIUPfTLbs+JjEve3g=; b=WPuE9CtoMYv0zPIVXmPix1mhlJWkg0tjsHpdE3/iS6FcWfeJhffR+blZ8FArktsq82 HBhRS3aaLIxyzK/PaVfZLL7MJfmd75DBl4eTFJD9y9boY5trznt79HUqQyZ41VxkOynk KPhSJo3d8yyNeMojv6j5Dm2QACrU1DmSbg5GJor5xCec1c5PSbW1vJ6hdpI79dxcU5eH T/DL33abokgmKfhkaPUNImUpDoKMNX2ToXmEnyjda3vu/SbjyEto5C1jwuVAVA14kxhm CAuq23quurSugX6KvbGmMaof2VCDpyiBxgWyEp2gelhOP5bkLD0rarFqUnSDzI7MmT61 5jTw== X-Received: by 10.194.179.37 with SMTP id dd5mr6508123wjc.129.1440704599635; Thu, 27 Aug 2015 12:43:19 -0700 (PDT) Received: from chaz.gmail.com (05448dab.skybroadband.com. [5.68.141.171]) by smtp.gmail.com with ESMTPSA id mz12sm262195wic.4.2015.08.27.12.43.18 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 27 Aug 2015 12:43:18 -0700 (PDT) Date: Thu, 27 Aug 2015 20:43:17 +0100 From: Stephane Chazelas To: =?iso-8859-1?Q?P=E1draig?= Brady Subject: Re: bug#21356: BUG: split shorter version of '--numeric-suffixes' give error Message-ID: <20150827194317.GB5479@chaz.gmail.com> References: <55DE464D.6090004@draigBrady.com> <20150827120614.GA5147@chaz.gmail.com> <55DF2A5B.6030300@draigBrady.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <55DF2A5B.6030300@draigBrady.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21356 Cc: 21356@debbugs.gnu.org, Tareque Md Khan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) 2015-08-27 16:18:51 +0100, Pádraig Brady: [...] > > info page: [...] > > It's easy to miss that it's not `-d[FROM]` here. A note along > > these lines could help: > > > > "Note that the FROM value can only be specified with the long > > option from." > > Done at: > http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=da5505dd7f Thanks. > I can't think of any suitably terse improvements for the man page. [...] Maybe something like: -d use numeric suffixes instead of alphabetic (starting at 0) --numeric-suffixes[=FROM] same as above but allows changing the starting value. As in effect, they are different options. -- Stephane From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 31 13:13:22 2015 Received: (at 21356) by debbugs.gnu.org; 31 Aug 2015 17:13:22 +0000 Received: from localhost ([127.0.0.1]:43873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWSe1-0000H7-W1 for submit@debbugs.gnu.org; Mon, 31 Aug 2015 13:13:22 -0400 Received: from mail1.vodafone.ie ([213.233.128.43]:13331) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWSdy-0000Ge-Oi for 21356@debbugs.gnu.org; Mon, 31 Aug 2015 13:13:20 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmgFAEuK5FVtTvUN/2dsb2JhbABegklSVGnAKoV2AQICgSpMAQEBAQEBgQuEIwEBAQR5EAsNBAMBAgEJFg8JAwIBAgE9CAYNAQUCAQGILgEIt3eOYQEBAQEBAQEDAQEBAQEBAQEai2uEehEHhCwFjG+IUoJBgVxqkHyRWyaCDB+BVT0zAQGCSwEBAQ Received: from unknown (HELO localhost.localdomain) ([109.78.245.13]) by mail1.vodafone.ie with ESMTP; 31 Aug 2015 18:13:12 +0100 Message-ID: <55E48B27.1070507@draigBrady.com> Date: Mon, 31 Aug 2015 18:13:11 +0100 From: =?windows-1252?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Stephane Chazelas Subject: Re: bug#21356: BUG: split shorter version of '--numeric-suffixes' give error References: <55DE464D.6090004@draigBrady.com> <20150827120614.GA5147@chaz.gmail.com> <55DF2A5B.6030300@draigBrady.com> <20150827194317.GB5479@chaz.gmail.com> In-Reply-To: <20150827194317.GB5479@chaz.gmail.com> Content-Type: multipart/mixed; boundary="------------060908010001060204060200" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21356 Cc: 21356@debbugs.gnu.org, Tareque Md Khan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (/) This is a multi-part message in MIME format. --------------060908010001060204060200 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit On 27/08/15 20:43, Stephane Chazelas wrote: > 2015-08-27 16:18:51 +0100, Pádraig Brady: > [...] >>> info page: > [...] >>> It's easy to miss that it's not `-d[FROM]` here. A note along >>> these lines could help: >>> >>> "Note that the FROM value can only be specified with the long >>> option from." >> >> Done at: >> http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=da5505dd7f > > Thanks. > >> I can't think of any suitably terse improvements for the man page. > [...] > > Maybe something like: > > -d use numeric suffixes instead of alphabetic > (starting at 0) > --numeric-suffixes[=FROM] same as above but allows changing the > starting value. > > As in effect, they are different options. > I'll apply the attached later. thanks, Pádraig. --------------060908010001060204060200 Content-Type: text/x-patch; name="short-optional-param.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="short-optional-param.patch" >From a83f703a9bf9412417be94848a4ed7b7f1c1fc4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Mon, 31 Aug 2015 18:07:34 +0100 Subject: [PATCH] doc: clarify in --help/man where short options take no param * src/shred.c (usage): For -u, separate the decscription of the short and long option, to clarify that the short option takes no parameter. * src/split.c (usage): Likewise for -d. * src/tee.c (usage): Likewise for -p. * src/uniq.c (usage): Likewise for -D. Suggested by Stephane Chazelas --- src/shred.c | 3 ++- src/split.c | 5 +++-- src/tee.c | 3 ++- src/uniq.c | 7 ++++--- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/shred.c b/src/shred.c index 52c93ef..195b5d2 100644 --- a/src/shred.c +++ b/src/shred.c @@ -185,7 +185,8 @@ If FILE is -, shred standard output.\n\ -s, --size=N shred this many bytes (suffixes like K, M, G accepted)\n\ "), DEFAULT_PASSES); fputs (_("\ - -u, --remove[=HOW] truncate and remove file after overwriting; See below\n\ + -u truncate and remove file after overwriting\n\ + --remove[=HOW] like -u but give control on HOW to delete; See below\n\ -v, --verbose show progress\n\ -x, --exact do not round file sizes up to the next full block;\n\ this is the default for non-regular files\n\ diff --git a/src/split.c b/src/split.c index 35f2629..1e6bec6 100644 --- a/src/split.c +++ b/src/split.c @@ -238,8 +238,9 @@ default size is 1000 lines, and default PREFIX is 'x'.\n\ --additional-suffix=SUFFIX append an additional SUFFIX to file names\n\ -b, --bytes=SIZE put SIZE bytes per output file\n\ -C, --line-bytes=SIZE put at most SIZE bytes of records per output file\n\ - -d, --numeric-suffixes[=FROM] use numeric suffixes instead of alphabetic;\n\ - FROM changes the start value (default 0)\n\ + -d use numeric suffixes starting at 0, not alphabetic\n\ + --numeric-suffixes[=FROM] same as -d, but allow setting the start value\ +\n\ -e, --elide-empty-files do not generate empty output files with '-n'\n\ --filter=COMMAND write to shell COMMAND; file name is $FILE\n\ -l, --lines=NUMBER put NUMBER lines/records per output file\n\ diff --git a/src/tee.c b/src/tee.c index 3c39a4a..35120f8 100644 --- a/src/tee.c +++ b/src/tee.c @@ -91,7 +91,8 @@ Copy standard input to each FILE, and also to standard output.\n\ -i, --ignore-interrupts ignore interrupt signals\n\ "), stdout); fputs (_("\ - -p, --output-error[=MODE] behavior on write error. See MODE details below\n\ + -p diagnose errors writing to non pipes\n\ + --output-error[=MODE] set behavior on write error. See MODE below\n\ "), stdout); fputs (HELP_OPTION_DESCRIPTION, stdout); fputs (VERSION_OPTION_DESCRIPTION, stdout); diff --git a/src/uniq.c b/src/uniq.c index e0cfe4d..8dfb7ea 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -185,9 +185,10 @@ With no options, matching lines are merged to the first occurrence.\n\ -d, --repeated only print duplicate lines, one for each group\n\ "), stdout); fputs (_("\ - -D, --all-repeated[=METHOD] print all duplicate lines;\n\ - groups can be delimited with an empty line;\n\ - METHOD={none(default),prepend,separate}\n\ + -D print all duplicate lines\n\ + --all-repeated[=METHOD] like -D, but allow separating groups\n\ + with an empty line;\n\ + METHOD={none(default),prepend,separate}\n\ "), stdout); fputs (_("\ -f, --skip-fields=N avoid comparing the first N fields\n\ -- 2.4.1 --------------060908010001060204060200-- From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 31 15:56:51 2015 Received: (at 21356) by debbugs.gnu.org; 31 Aug 2015 19:56:51 +0000 Received: from localhost ([127.0.0.1]:44048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWVCF-0004GX-1v for submit@debbugs.gnu.org; Mon, 31 Aug 2015 15:56:51 -0400 Received: from mail-vk0-f54.google.com ([209.85.213.54]:36775) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWVCD-0004GP-ER for 21356@debbugs.gnu.org; Mon, 31 Aug 2015 15:56:49 -0400 Received: by vkbc123 with SMTP id c123so44276482vkb.3 for <21356@debbugs.gnu.org>; Mon, 31 Aug 2015 12:56:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=3POndhbq4m/z8EkdZU5FYia43R8PSflfmlmIIPxaxtg=; b=fHtw3EdGZvLk48qX4eCGpIRKx6lsM2iOTlI43bjSxqsyHc2+Qfa5Myn4Vidj1JKkiz LVrR5Kec93TtwIGuNIOwNwoNUItTwYrVYajbEsVg7zV6my7z0U0eOciLNDhCBKBronBz wVwyIQMZywfbGaTiiAcDU6aO7TNG7KPuEUwBKX/0Qg3qjj+NrWZd8Doej5/6C8FNwERM S8PmfvOwkKnLsyRpPKx7rC/gk06r4Dov/OXb2NFD88unRtwGkNhH8bZMh5LYgadeEFt7 zqhupfgRXN/MQT7eyGkJ6B2U6lboyv8cadbLtEdjKJ4Y25z7eeVE1Ez/Vzlh4No1W/Wd SGDA== X-Received: by 10.52.110.200 with SMTP id ic8mr12652522vdb.76.1441051008995; Mon, 31 Aug 2015 12:56:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.61.8 with HTTP; Mon, 31 Aug 2015 12:56:29 -0700 (PDT) In-Reply-To: <55E48B27.1070507@draigBrady.com> References: <55DE464D.6090004@draigBrady.com> <20150827120614.GA5147@chaz.gmail.com> <55DF2A5B.6030300@draigBrady.com> <20150827194317.GB5479@chaz.gmail.com> <55E48B27.1070507@draigBrady.com> From: Jim Meyering Date: Mon, 31 Aug 2015 12:56:29 -0700 X-Google-Sender-Auth: M210cPFdxj2QO1tl0sqnDy1f9PE Message-ID: Subject: Re: bug#21356: BUG: split shorter version of '--numeric-suffixes' give error To: =?UTF-8?Q?P=C3=A1draig_Brady?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21356 Cc: 21356@debbugs.gnu.org, Stephane Chazelas , Tareque Md Khan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) On Mon, Aug 31, 2015 at 10:13 AM, P=C3=A1draig Brady wro= te: > I'll apply the attached later. Nice. Thanks to both of you. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 17:07:59 2018 Received: (at control) by debbugs.gnu.org; 24 Oct 2018 21:07:59 +0000 Received: from localhost ([127.0.0.1]:40640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFQNj-00046v-Gj for submit@debbugs.gnu.org; Wed, 24 Oct 2018 17:07:59 -0400 Received: from mail-pl1-f173.google.com ([209.85.214.173]:42014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFQNh-00046g-So for control@debbugs.gnu.org; Wed, 24 Oct 2018 17:07:58 -0400 Received: by mail-pl1-f173.google.com with SMTP id t6-v6so2773787plo.9 for ; Wed, 24 Oct 2018 14:07:57 -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=LzUG2gAdYd+hRiZWbY4/4qGICDOMzgfUHxIdDj61JHQ=; b=JHvA8MXeX9oYUcSa/mgIaPYm6/CiRfdYoMc7JciXL4QdQG7r3LOFDtibwyqMJB0sfz okoSt+qb4+9EtKSj4KA6jFnz1bdk+L1MFWdodWcv5PseUOdb6spxqJ1glQ9VIBiCIQU7 V+2FH6f3cBcGM0XqNvLqCM98DSjSVXBPGWt/p0XvihR5zAoiKa3OM1NKuOges0at2rtg hFd0zETkfXP9f9cUo6/AB7KTN+TJ5o8dQILKMIe1MZBlhu6rsvEz/Ck7SiCo9lSinv2p 1l+mrSfY/1MXTSfsIEN01UuhRxrLuL+tChkUs2/Lb9eBRpi5ymyH0K8faPjBI9v4FPt5 hz1Q== 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=LzUG2gAdYd+hRiZWbY4/4qGICDOMzgfUHxIdDj61JHQ=; b=WFHC/qItbC6pB/tjEElUJB6msokUA3jRUNzuU5irwoBs2X8kSQgw76SKE8MJt0FIfz KD5UVWSVK01RNBbc3kAlH+mgIxv8jCyhlsgOlfDFkMK/hVHMpAgRiW/DK96HHgHj4SSR FVuBgVzhtWgHNc87lFiJ1tpTcLSmd9wCd9NQN44Ek41ShYlau+S2K1eTp+9D5Q5Wak5x NMhuVxTTF8k/XhQCFbYR4svrvabipZ3/GIhkqJlFdtX8LKIQya5fYumLwL6C44PLzUDC /zBiO1Z2H73/sTWvQImEYWQ8XUwo0xnPJM/x1JV8rEOGwGaBpa8Fi6X7NRCbcul6sgd1 dooA== X-Gm-Message-State: AGRZ1gKZp4LVxzufx0wE42cx+5duf6RTXNGVIBdguIVR8jWcrUcu86Hx 61iieg/NMDsYsKDW6TVil+ZVDwX3v5g= X-Google-Smtp-Source: AJdET5dAx0ICpbLeMpLAHeyGBZjtNOJYRX7rsSHnUNIm9Bi4Xq+hjBuczwGUUvW8SYgHKLFL7z7W5A== X-Received: by 2002:a17:902:9009:: with SMTP id a9-v6mr3950325plp.134.1540415271691; Wed, 24 Oct 2018 14:07:51 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id l1-v6sm6517071pgm.8.2018.10.24.14.07.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Oct 2018 14:07:50 -0700 (PDT) To: control@debbugs.gnu.org From: Assaf Gordon Message-ID: <26e512f0-86e3-c08a-1f35-1c4904c362b7@gmail.com> Date: Wed, 24 Oct 2018 15:07:48 -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: close 21356 [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.214.173 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@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 (+) close 21356 From unknown Sun Jun 22 07:36:08 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, 22 Nov 2018 12:24:09 +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