GNU bug report logs - #44959
date error message should say -I

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: coreutils; Reported by: 積丹尼 Dan Jacobson <jidanni@HIDDEN>; dated Mon, 30 Nov 2020 13:15:01 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

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


Received: (at 44959) by debbugs.gnu.org; 30 Nov 2020 21:32:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 30 16:32:06 2020
Received: from localhost ([127.0.0.1]:56913 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kjqmE-0003dI-1Z
	for submit <at> debbugs.gnu.org; Mon, 30 Nov 2020 16:32:06 -0500
Received: from mail-wr1-f51.google.com ([209.85.221.51]:40532)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pixelbeat@HIDDEN>) id 1kjqmC-0003co-9D
 for 44959 <at> debbugs.gnu.org; Mon, 30 Nov 2020 16:32:04 -0500
Received: by mail-wr1-f51.google.com with SMTP id o1so4314627wrx.7
 for <44959 <at> debbugs.gnu.org>; Mon, 30 Nov 2020 13:32:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:from:to:cc:references:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=ZeNHGF6eg84alEfZ8KlisA8z8vd3qxEqysqYbdEUze0=;
 b=uP5k+Rog5Bakv5IiorbacJciE+UBCZMPK+jIuAK3uPy3HT0BnFFlkwt/zpRBDeWLd9
 TLbzthK2tOagqon4vc9trRN10IkGgVHQLClmqQ5mwB/Sli+w3YQGLUau/LWwml2QiMVM
 sHANgbrQRdiiRoFOsov9mLR59FBmCTs6TiJO98llPAr8/M12Gt2NWYtylmeHGv9AETlq
 ovsuZaz5A1xk32waeXEJUflQlNBD8j9GIUrM8Ih3nTTNyzvQvqgFJ3K2BMU+VY33LKuL
 dMc8SwTlDwW5yqD5cvyoGXPSkewIYuzzw2DkGYHrZCNiM2Zrfmeba+9u+yBq16lJtvMp
 2b6A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:from:to:cc:references:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=ZeNHGF6eg84alEfZ8KlisA8z8vd3qxEqysqYbdEUze0=;
 b=BtSzdgs9d7q31zz9qavM+iQFhANlA1U+ADeekKccL/Ozne8yzHElCNoXqIfjCw7eQ3
 77r9nTqQS9S+ZI5r4AYTGjC4CfoGNIJ2yIAcQ1Ds4HbX7xhO+GrOhQBoOqbv3U5JnpAD
 QDLO/jMWptHfEDslrheVFe+LfeIri8tjTWsFljoBaWRedblwbPYjiWlHgxvPlwCWBMDt
 gOT1cYT91hSVaJ81mRVKZF+tJ2AF+cWU4Y1DBmsKQRD1ZwDyX5bn1c0MZfX8DkPVorFn
 Pg+M1wTdgq7iPJEIye16x96He5XnH45+bZeJYnqBcb7RXHkf2WgMoEWMi2iLOmYzcht+
 Ysmg==
X-Gm-Message-State: AOAM533tCIsdPactnIhKDgnmDstfLC5IR7u4Z0IUs4MzpB8EAFLvxaqz
 ZGy9Kz8Su99XZ5VQZgwZUnCyYmt+vpOBaA==
X-Google-Smtp-Source: ABdhPJwu6n6D6LOQvsSHnUQt6wbvzrUahJS2vbdnz8e9ZC1j/514gTyOK5GYrOf+ZMR5lsXvvu3XuQ==
X-Received: by 2002:a5d:4d41:: with SMTP id a1mr30981108wru.399.1606771918471; 
 Mon, 30 Nov 2020 13:31:58 -0800 (PST)
Received: from localhost.localdomain
 (86-42-14-227-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.42.14.227])
 by smtp.googlemail.com with UTF8SMTPSA id
 b12sm1676331wmj.2.2020.11.30.13.31.57
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 30 Nov 2020 13:31:57 -0800 (PST)
Subject: Re: bug#44959: date error message should say -I
From: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>
To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= <jidanni@HIDDEN>
References: <87eekbgf7g.5.fsf@HIDDEN>
 <3c688411-a4a3-e691-0a01-7bc0dfc73fa1@HIDDEN>
 <87zh2yg9av.5.fsf@HIDDEN>
 <e077561f-872c-39bf-27c8-08911ac27b72@HIDDEN>
Message-ID: <18d46ac8-667e-f92b-868f-73504939b31c@HIDDEN>
Date: Mon, 30 Nov 2020 21:31:56 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101
 Thunderbird/84.0
MIME-Version: 1.0
In-Reply-To: <e077561f-872c-39bf-27c8-08911ac27b72@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 44959
Cc: 44959 <at> debbugs.gnu.org
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: -0.5 (/)

On 30/11/2020 17:22, Pádraig Brady wrote:
> On 30/11/2020 15:21, 積丹尼 Dan Jacobson wrote:
>> Well OK, but when and when not to use the "=" is not revealed by the
>> otherwise detailed error messages. So unless the user checks the manual,
>> they will never "get it".
> 
> If we were to recognize "-I seconds",
> it should just be for diagnostic help.
> I.e. we should minimize the combinations of valid inputs,
> for compatibility, consistency, and simplicity.
> 
> I'll have a look at improving diagnostics in this area.

This is one of the reasons we avoid args to short options,
and new short options in general.
Optional args to short options are rare in coreutils:

   $ grep -- '-[[:alpha:]]\[[A-Z]' man/*.1 | sed 's/,.*//'
   man/date.1:\fB\-I[FMT]\fR
   man/od.1:\fB\-w[BYTES]\fR
   man/pr.1:\fB\-e[CHAR[WIDTH]]\fR
   man/pr.1:\fB\-i[CHAR[WIDTH]]\fR
   man/pr.1:\fB\-n[SEP[DIGITS]]\fR
   man/pr.1:\fB\-s[CHAR]\fR
   man/pr.1:\fB\-s[CHAR]\fR turns off line truncation of all 3 column
   man/pr.1:\fB\-S[STRING]\fR

Non option args to short options as less rare:

   $ grep 'B\\-[^\].*=' man/*.1

For my reference, if we were to give explicit diagnosis of the leading '='.
we would need to update xstrtol_fatal, XARGMATCH, operand2sig, set_fields, ...

cheers,
Pádraig




Information forwarded to bug-coreutils@HIDDEN:
bug#44959; Package coreutils. Full text available.

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


Received: (at 44959) by debbugs.gnu.org; 30 Nov 2020 17:22:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 30 12:22:56 2020
Received: from localhost ([127.0.0.1]:56538 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kjmt5-0005Yn-U7
	for submit <at> debbugs.gnu.org; Mon, 30 Nov 2020 12:22:56 -0500
Received: from mail-wm1-f45.google.com ([209.85.128.45]:51795)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pixelbeat@HIDDEN>) id 1kjmt4-0005YY-M7
 for 44959 <at> debbugs.gnu.org; Mon, 30 Nov 2020 12:22:55 -0500
Received: by mail-wm1-f45.google.com with SMTP id v14so13652496wml.1
 for <44959 <at> debbugs.gnu.org>; Mon, 30 Nov 2020 09:22:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:cc:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=vFC+c8p/hpmVGgQ6Vr6FuRPkflyy36Ofii7vuL08DwY=;
 b=d2TnE1DBGXPxHEuCcJoraFC5ed4WKKL26ZpyYQz9mpw0GgoWguyOOG8Bzn0EENWvgw
 0CFqBief85K/Z71U4cQWDbLObCbWpPzuM7GpvNz5+2KJziCYI7DzOEjC2xv57uVqvIZK
 f1G+Il8/cGyCh5iPcHr41EXctdm8npn5ANLAgGdhPTji4LPFtpH+KmnhTOxNyfKlbHpW
 6lCNqd/o6L2H06HaIzV0b6djUhvihG3d0NELFgtCcxKx4IGjBA5Wo8gYw3A9d16KUwOm
 Vy+Afie5WZggrouJVViwRg+hVsuklI8oY+8wXNzHM6h1acj11bjAf45VD2M2SW0j2xmk
 B4lA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:cc:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=vFC+c8p/hpmVGgQ6Vr6FuRPkflyy36Ofii7vuL08DwY=;
 b=mkruoHpZpxTm2YEQQudSX2D11gry3MnQ96eV1i+4uymyZ/qsC9V62Dnark5jRE2UxB
 DwxSwxb0tzyBWOHjuLHZfIkL3i542b+X4BwEk6NbthCLLvvEI8CK6kbff0D843VrtQ6F
 zlhPazUByoEYqLfIsCniM3FMwfxWWqXCz1+Arv6iB20VQqkCtVEDmBdDsTAlDqGRD4Vq
 6Bq1kGIrFRfNv7fHcUC2eZL1egnuZpQrYX3gGNLR0G38Yhrvklavuhd10wkaph5XDfR2
 AJZMmHbFiGqCuCLOprnDkB7BvgNda5F6pGQLZUp781RZ6hglzELUGjQaOCe/z0kg1Hnx
 V3iw==
X-Gm-Message-State: AOAM530CuXiaCWH1pfqHNSwdVkqD+76acN7fDknJVxOljxk2lO9MALK2
 CKRUqA1V7aoPlD9FHKP6ne3oKSyM0gIAeQ==
X-Google-Smtp-Source: ABdhPJwUQMrbpT1pXbXmCNUMEQ/wfGvPcxF96oa3MAiaUVZ7sNQYUUCMzSXle97Ma3KUQMOvr07vqw==
X-Received: by 2002:a05:600c:224b:: with SMTP id
 a11mr2679786wmm.97.1606756968891; 
 Mon, 30 Nov 2020 09:22:48 -0800 (PST)
Received: from localhost.localdomain
 (86-42-14-227-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.42.14.227])
 by smtp.googlemail.com with UTF8SMTPSA id
 f23sm24451409wmb.43.2020.11.30.09.22.47
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 30 Nov 2020 09:22:48 -0800 (PST)
Subject: Re: bug#44959: date error message should say -I
To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= <jidanni@HIDDEN>,
 Bernhard Voelker <mail@HIDDEN>
References: <87eekbgf7g.5.fsf@HIDDEN>
 <3c688411-a4a3-e691-0a01-7bc0dfc73fa1@HIDDEN>
 <87zh2yg9av.5.fsf@HIDDEN>
From: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>
Message-ID: <e077561f-872c-39bf-27c8-08911ac27b72@HIDDEN>
Date: Mon, 30 Nov 2020 17:22:47 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101
 Thunderbird/84.0
MIME-Version: 1.0
In-Reply-To: <87zh2yg9av.5.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 44959
Cc: 44959 <at> debbugs.gnu.org
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: -0.5 (/)

On 30/11/2020 15:21, 積丹尼 Dan Jacobson wrote:
> Well OK, but when and when not to use the "=" is not revealed by the
> otherwise detailed error messages. So unless the user checks the manual,
> they will never "get it".

If we were to recognize "-I seconds",
it should just be for diagnostic help.
I.e. we should minimize the combinations of valid inputs,
for compatibility, consistency, and simplicity.

I'll have a look at improving diagnostics in this area.

cheers,
Pádraig




Information forwarded to bug-coreutils@HIDDEN:
bug#44959; Package coreutils. Full text available.

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


Received: (at 44959) by debbugs.gnu.org; 30 Nov 2020 15:21:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 30 10:21:36 2020
Received: from localhost ([127.0.0.1]:56279 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kjkzf-00025d-PF
	for submit <at> debbugs.gnu.org; Mon, 30 Nov 2020 10:21:36 -0500
Received: from crocodile.elm.relay.mailchannels.net ([23.83.212.45]:20887)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jidanni@HIDDEN>) id 1kjkzd-00025I-Fg
 for 44959 <at> debbugs.gnu.org; Mon, 30 Nov 2020 10:21:34 -0500
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 3D7D7182365;
 Mon, 30 Nov 2020 15:21:19 +0000 (UTC)
Received: from pdx1-sub0-mail-a64.g.dreamhost.com
 (100-96-27-93.trex.outbound.svc.cluster.local [100.96.27.93])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id B1A8A1821DF;
 Mon, 30 Nov 2020 15:21:18 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from pdx1-sub0-mail-a64.g.dreamhost.com (pop.dreamhost.com
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.18.10); Mon, 30 Nov 2020 15:21:19 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Arch-Cold: 393142767af1db3d_1606749678773_677980993
X-MC-Loop-Signature: 1606749678773:2328904570
X-MC-Ingress-Time: 1606749678773
Received: from pdx1-sub0-mail-a64.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a64.g.dreamhost.com (Postfix) with ESMTP id 7AD747F59D;
 Mon, 30 Nov 2020 07:21:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc
 :subject:references:date:message-id:mime-version:content-type;
 s=jidanni.org; bh=F7tb0ZjcKWQx0HKArM9oHJoj024=; b=Y5MklBHHULOkK
 j71sECzROXgHxrorYiOZK+jumBIc4ftHaLRFUVT1D9ZQNJQm3oImLqXLSDTG+JFw
 oePszKvySj6m13qLVV8xVsD1vsmHG24zla091+Fati0W3PHeIBsVFp2T27YY7bcV
 /h9XmeIStGKj7hCqbAAO37qNz9KnBQ=
Received: from jidanni.org (1-170-80-165.dynamic-ip.hinet.net [1.170.80.165])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256
 bits)) (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by pdx1-sub0-mail-a64.g.dreamhost.com (Postfix) with ESMTPSA id D45087E38D;
 Mon, 30 Nov 2020 07:21:17 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a64
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: Bernhard Voelker <mail@HIDDEN>
Subject: Re: bug#44959: date error message should say -I
References: <87eekbgf7g.5.fsf@HIDDEN>
 <3c688411-a4a3-e691-0a01-7bc0dfc73fa1@HIDDEN>
Date: Mon, 30 Nov 2020 23:21:12 +0800
Message-ID: <87zh2yg9av.5.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 44959
Cc: 44959 <at> debbugs.gnu.org
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 (-)

Well OK, but when and when not to use the "=" is not revealed by the
otherwise detailed error messages. So unless the user checks the manual,
they will never "get it".




Information forwarded to bug-coreutils@HIDDEN:
bug#44959; Package coreutils. Full text available.

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


Received: (at 44959) by debbugs.gnu.org; 30 Nov 2020 14:51:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 30 09:51:28 2020
Received: from localhost ([127.0.0.1]:54318 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kjkWV-0000sU-OX
	for submit <at> debbugs.gnu.org; Mon, 30 Nov 2020 09:51:27 -0500
Received: from mail-wr1-f41.google.com ([209.85.221.41]:43239)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <celvidge001@HIDDEN>) id 1kjkWT-0000sG-Th
 for 44959 <at> debbugs.gnu.org; Mon, 30 Nov 2020 09:51:26 -0500
Received: by mail-wr1-f41.google.com with SMTP id s8so16552526wrw.10
 for <44959 <at> debbugs.gnu.org>; Mon, 30 Nov 2020 06:51:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-language:content-transfer-encoding;
 bh=oMvZfudzx2+A9L+/vIgW2j8oiittp59Plrq5C5OG15s=;
 b=F7R3LBn369emOK9wySYo9Rr+khHzemIoXRusSwB0kffUGWcVzeKiIt6Kyo5P4qpYrm
 6LcTrMLjY75Q9HuutpDLUgSONE2cAfbZ0k2p3+8liS/jo9WiJNvOmLRsNklUu9DL8ZaN
 7UDzA0R3lKVx/4o+2W9w2QnReHMetUvNtByoR5835UzQ5gQQQd7GE3OTzNr/RL+hkcNe
 YNp/YWr39srCSOEnD1KpK2RdjK2sbcErBQYgKTzW6+H+OwCUw2R+KnSV38Kyh9lG7adO
 GxEMOKSFGSyUEoLWIv5X+VMYi5WcwdyRxaLfqTsqP4Piznr2ysqXh8p8+2EambwT6PME
 B/Tw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=oMvZfudzx2+A9L+/vIgW2j8oiittp59Plrq5C5OG15s=;
 b=bR8xp936+TJVbSIlGJ9cHb+c9dodYyCfHzcYNEKQIiGQWWdjkrGVjeBNJ75H6hn/s+
 l17/CwAUyDz39xxGXrYBSpt6KhGkwWQqTOCVa5gYirBnqZYMrn+wcLR8/II4wpSpLau6
 7uQLxrY4a4llzD3Tot+6sKya8G2rA3ahqaC32AsszXTa0j6Ph9BDWTOIGZWhUZ2MgKk7
 i1cg1jKHAThKAZljY/zLoJhh9z6LrUdAY+yI5DM/Rum+ltCsubVcvY0jA4r6rCzHBtvR
 azxrkYc2rJw8gv+ZeDkqtv3s0FTy6mPOnDc8ETqzeHBgKEKpquSrXRDF3S+HGV5HANtL
 7mqQ==
X-Gm-Message-State: AOAM531L43TvsYdAzpg3eUA0tQlXvZIAft3/KVqzQjDaBwAJpxblUHHR
 s5B0scucf6krMdy6JHMd8sJRlOHfKrnFyg==
X-Google-Smtp-Source: ABdhPJyDo+FYUDW4HtxATI8Q1Ye3/mCm1BnaL0NJslJeqak5aTuTHyKDr9aTXbZ/wf7gk65BFnsFkw==
X-Received: by 2002:a05:6000:1006:: with SMTP id
 a6mr28142723wrx.367.1606747879499; 
 Mon, 30 Nov 2020 06:51:19 -0800 (PST)
Received: from [192.168.23.100] (92.40.173.110.threembb.co.uk. [92.40.173.110])
 by smtp.gmail.com with ESMTPSA id f4sm24208494wmb.47.2020.11.30.06.51.17
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 30 Nov 2020 06:51:18 -0800 (PST)
Subject: Re: bug#44959: date error message should say -I
To: Bernhard Voelker <mail@HIDDEN>,
 =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= <jidanni@HIDDEN>,
 44959 <at> debbugs.gnu.org
References: <87eekbgf7g.5.fsf@HIDDEN>
 <3c688411-a4a3-e691-0a01-7bc0dfc73fa1@HIDDEN>
From: Chris Elvidge <celvidge001@HIDDEN>
Message-ID: <5de5eafd-7149-204b-3d86-19f14dc6737e@HIDDEN>
Date: Mon, 30 Nov 2020 14:51:16 +0000
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: <3c688411-a4a3-e691-0a01-7bc0dfc73fa1@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 44959
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: -0.8 (/)

On 30/11/2020 01:40 pm, Bernhard Voelker wrote:
> On 11/30/20 2:13 PM, 積丹尼 Dan Jacobson wrote:
>> $ date -I=seconds
>> date: invalid argument ‘=seconds’ for ‘--iso-8601’
> 
> Hmm, first of all, 'date' 8.32 outputs more than the above:
> 
>    $ date -I=seconds
>    date: invalid argument '=seconds' for '--iso-8601'
>    Valid arguments are:
>      - 'hours'
>      - 'minutes'
>      - 'date'
>      - 'seconds'
>      - 'ns'
>    Try 'date --help' for more information.
> 
>> Hey, that is a valid argument for --iso-8601. (But not for -I, so say
>> that instead.)
> ...
>> date (GNU coreutils) 8.32
> 
>>From the above error message and from the --help output, one can see that
> the -I option does not require the argument to be appended with "=FMT" but
> just "FMT":
> 
>    $ date --help | grep -- -I
>      -I[FMT], --iso-8601[=FMT]  output date/time in ISO 8601 format.
> 
> So, I'd say 'date' works as expected:
> 
>    $ date -Iseconds
>    2020-11-30T14:38:35+01:00
> 
> Have a nice day,
> Berny
> 
> 
> 
> 

Is -I the only option that doesn't accept a space separator between it 
and its argument? Is that because it doesn't require an argument?

Could/Should the argument after -I be parsed and used if it is one of 
date hours minutes seconds ns? (Could it also parse for mins secs?) But 
used as a separate option if not parsed as an argument?

Is this too difficult?

Cheers

-- 

Chris Elvidge






Information forwarded to bug-coreutils@HIDDEN:
bug#44959; Package coreutils. Full text available.

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


Received: (at 44959) by debbugs.gnu.org; 30 Nov 2020 13:40:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 30 08:40:41 2020
Received: from localhost ([127.0.0.1]:54169 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kjjQ1-0007VF-8H
	for submit <at> debbugs.gnu.org; Mon, 30 Nov 2020 08:40:41 -0500
Received: from mout.kundenserver.de ([212.227.126.134]:44963)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1kjjPy-0007Uy-O3
 for 44959 <at> debbugs.gnu.org; Mon, 30 Nov 2020 08:40:39 -0500
Received: from [192.168.101.10] ([91.12.160.30]) by mrelayeu.kundenserver.de
 (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id
 1McpeM-1kAwd138te-00Zx4G; Mon, 30 Nov 2020 14:40:25 +0100
Subject: Re: bug#44959: date error message should say -I
To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= <jidanni@HIDDEN>,
 44959 <at> debbugs.gnu.org
References: <87eekbgf7g.5.fsf@HIDDEN>
From: Bernhard Voelker <mail@HIDDEN>
Message-ID: <3c688411-a4a3-e691-0a01-7bc0dfc73fa1@HIDDEN>
Date: Mon, 30 Nov 2020 14:40:24 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.5.0
MIME-Version: 1.0
In-Reply-To: <87eekbgf7g.5.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K1:Xkd6ZDGwUqmQ0MbhfnS6TxK5f+t1s2IilfmMnqbGlivy0l3vaQN
 MwKl0HPzW8qzVWT467hLCJKGcvMxFbo/AGghzrStwgmd7DUfxErnNPaLsHlPLB6GiNGTajQ
 Fq2O2U1bVGh1aFaJ20Xls4qDq6/BSauqfJMpg+YDG+OXCYU+EjXLwAFOXSmJVCBFX53eVX+
 gMiPPrR0RR3S1Y+a4eSJQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:quPOLKiDz68=:veAqNCzKCT7xuDSs7ZparQ
 ea25AUNxRuWYPRoW6iUAEMlMDotOHCiNAPLqyMOOB0a6KIiTsCXQ9Ht4G7kdDDetgiboabnlj
 yyJbTQ2bQAPdFLA7i6TqAl4NUU0QPkbULpOU10ptllGss/N29D81wpSc38JXIekt2LfnY5gsg
 WoWBw/prr80gmyJIzQxlYbljnzy4OE2FXECzLw/enuUJhgdoNaGf/F/BTIPpkAbFeF1/yZclk
 SMV+3hOmunZ9zH2rChPBef0tfy0AFlE6SfOfgftRE6OsdBmZ0yO5HLQLlLBJSP+sYGyNWYAKu
 h6NS4hiEJtzaOs0XtidF1opq8VnZTMZBtPBqhL0SyDuvjj3HbNiLhenhP6X3EdESznJq8KLHF
 Xvj7iZpQkNDkYDlOSIQaQmBchXOInJjc5ChrblTbN0yL6T8w+LlcStxzPmcjEjl2r8szPLsJx
 9X15Fnxrqg==
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 44959
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 (-)

On 11/30/20 2:13 PM, 積丹尼 Dan Jacobson wrote:
> $ date -I=seconds
> date: invalid argument ‘=seconds’ for ‘--iso-8601’

Hmm, first of all, 'date' 8.32 outputs more than the above:

  $ date -I=seconds
  date: invalid argument '=seconds' for '--iso-8601'
  Valid arguments are:
    - 'hours'
    - 'minutes'
    - 'date'
    - 'seconds'
    - 'ns'
  Try 'date --help' for more information.

> Hey, that is a valid argument for --iso-8601. (But not for -I, so say
> that instead.)
...
> date (GNU coreutils) 8.32

From the above error message and from the --help output, one can see that
the -I option does not require the argument to be appended with "=FMT" but
just "FMT":

  $ date --help | grep -- -I
    -I[FMT], --iso-8601[=FMT]  output date/time in ISO 8601 format.

So, I'd say 'date' works as expected:

  $ date -Iseconds
  2020-11-30T14:38:35+01:00

Have a nice day,
Berny




Information forwarded to bug-coreutils@HIDDEN:
bug#44959; Package coreutils. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 30 Nov 2020 13:14:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 30 08:14:03 2020
Received: from localhost ([127.0.0.1]:54151 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kjj0E-0004kk-R3
	for submit <at> debbugs.gnu.org; Mon, 30 Nov 2020 08:14:03 -0500
Received: from lists.gnu.org ([209.51.188.17]:41276)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jidanni@HIDDEN>) id 1kjj0C-0004kD-Uj
 for submit <at> debbugs.gnu.org; Mon, 30 Nov 2020 08:14:01 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:59848)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jidanni@HIDDEN>)
 id 1kjj06-0006Vr-Pg
 for bug-coreutils@HIDDEN; Mon, 30 Nov 2020 08:13:57 -0500
Received: from dog.birch.relay.mailchannels.net ([23.83.209.48]:55031)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jidanni@HIDDEN>)
 id 1kjj03-0008RA-F7
 for bug-coreutils@HIDDEN; Mon, 30 Nov 2020 08:13:53 -0500
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 5C933181040
 for <bug-coreutils@HIDDEN>; Mon, 30 Nov 2020 13:13:46 +0000 (UTC)
Received: from pdx1-sub0-mail-a64.g.dreamhost.com
 (100-98-118-91.trex.outbound.svc.cluster.local [100.98.118.91])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 6E1E5181A95
 for <bug-coreutils@HIDDEN>; Mon, 30 Nov 2020 13:13:44 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from pdx1-sub0-mail-a64.g.dreamhost.com (pop.dreamhost.com
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.18.10); Mon, 30 Nov 2020 13:13:46 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Stupid-Bitter: 174d9f9e6efc243b_1606742024652_3020168161
X-MC-Loop-Signature: 1606742024652:3686799719
X-MC-Ingress-Time: 1606742024652
Received: from pdx1-sub0-mail-a64.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a64.g.dreamhost.com (Postfix) with ESMTP id 2406C85E51
 for <bug-coreutils@HIDDEN>; Mon, 30 Nov 2020 05:13:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to
 :subject:date:message-id:mime-version:content-type
 :content-transfer-encoding; s=jidanni.org; bh=0icKfsZTaJ0MnW8RJB
 MU+ulKHmQ=; b=GsdoF+CNOsHF/d7LlFAny3qAEHWA1jgXiuRcPmhJV2LCZU/rYb
 zG3iH7UpfFF3paAoxXirsEEUOZUS/5wl54O5RES5pl0XaxzZg32jhPAzWcVjp0uS
 F+FCJziHNUk48+F3okfnG1DexDlRRbAnBcRqach3EYEwH0M+rj5D1q2sw=
Received: from jidanni.org (1-170-80-165.dynamic-ip.hinet.net [1.170.80.165])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256
 bits)) (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by pdx1-sub0-mail-a64.g.dreamhost.com (Postfix) with ESMTPSA id DAEE87F06C
 for <bug-coreutils@HIDDEN>; Mon, 30 Nov 2020 05:13:43 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a64
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: bug-coreutils@HIDDEN
Subject: date error message should say -I
Date: Mon, 30 Nov 2020 21:13:39 +0800
Message-ID: <87eekbgf7g.5.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=23.83.209.48; envelope-from=jidanni@HIDDEN;
 helo=dog.birch.relay.mailchannels.net
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,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
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.4 (--)

$ date -I=3Dseconds
date: invalid argument =E2=80=98=3Dseconds=E2=80=99 for =E2=80=98--iso-86=
01=E2=80=99

Hey, that is a valid argument for --iso-8601. (But not for -I, so say
that instead.)

Here is a real invalid argument:

$ date --iso-8601=3Dsecondsz
date: invalid argument =E2=80=98secondsz=E2=80=99 for =E2=80=98--iso-8601=
=E2=80=99

date (GNU coreutils) 8.32




Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#44959; Package coreutils. 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: Mon, 30 Nov 2020 21:45:02 UTC

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