X-Loop: help-debbugs@HIDDEN Subject: bug#27482: date: minus and ago in same sentence Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson <jidanni@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Sun, 25 Jun 2017 12:32:02 +0000 Resent-Message-ID: <handler.27482.B.149839388716395 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 27482 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 27482 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.149839388716395 (code B ref -1); Sun, 25 Jun 2017 12:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Jun 2017 12:31:27 +0000 Received: from localhost ([127.0.0.1]:36390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1dP6hK-0004GN-SN for submit <at> debbugs.gnu.org; Sun, 25 Jun 2017 08:31:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jidanni@HIDDEN>) id 1dP6hJ-0004GA-4k for submit <at> debbugs.gnu.org; Sun, 25 Jun 2017 08:31:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <jidanni@HIDDEN>) id 1dP6hB-0006UZ-P4 for submit <at> debbugs.gnu.org; Sun, 25 Jun 2017 08:31:19 -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,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40722) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <jidanni@HIDDEN>) id 1dP6hB-0006US-JY for submit <at> debbugs.gnu.org; Sun, 25 Jun 2017 08:31:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <jidanni@HIDDEN>) id 1dP6h9-00082o-QM for bug-coreutils@HIDDEN; Sun, 25 Jun 2017 08:31:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <jidanni@HIDDEN>) id 1dP6gj-0006Kn-6B for bug-coreutils@HIDDEN; Sun, 25 Jun 2017 08:31:15 -0400 Received: from homie.mail.dreamhost.com ([208.97.132.208]:52655 helo=homiemail-a38.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <jidanni@HIDDEN>) id 1dP6gi-0006IS-MY for bug-coreutils@HIDDEN; Sun, 25 Jun 2017 08:30:48 -0400 Received: from homiemail-a38.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTP id 8E71B10AFB5 for <bug-coreutils@HIDDEN>; Sun, 25 Jun 2017 05:30:44 -0700 (PDT) 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=0TI0M78hFs/SzanFljC 6EHsFZbo=; b=YZ7sNwI/pIsJnkJFqVwQznQKUpybnE76jmOOjhZyxr8bW/tbAgD 4phU8HleTYO6Bu66y1C2SuuC0gfqQRZHfC302kB7xrYDUtMRU0yRg0G2x32e2o4R jqP0yX8yS52aFr9lkUM2YaTtq2xw/0VP1UTrSL10mYPjrbRsgRuwxCqM= Received: from jidanni.org (114-46-57-78.dynamic-ip.hinet.net [114.46.57.78]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@HIDDEN) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTPSA id 4472510AFA5 for <bug-coreutils@HIDDEN>; Sun, 25 Jun 2017 05:30:44 -0700 (PDT) From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson <jidanni@HIDDEN> Date: Sun, 25 Jun 2017 18:53:29 +0800 Message-ID: <87k240s5hy.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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-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: -5.0 (-----) I got an idea. Please parse "one", "two", "three".... (lower and upper case folded too.) 1. Because it is proper English. "1 day ago" is cellphone English. 2. Because there can't be that many of them... (seventy-three, seventy-four... well they are made up of other components...) 3. Because it will avoid the user getting these surprising results, $ date -d 'two weeks ago' date: invalid date =E2=80=98two weeks ago=E2=80=99 $ date -d 'now - two weeks ago' date: invalid date =E2=80=98now - two weeks ago=E2=80=99 $ date -d 'now - 2 weeks ago' Sun Jul 9 18:39:23 CST 2017 Or just catch the error of "-" and "ago" in the same sentence. Or perhaps warn on (info "(coreutils) Relative items in date strings") about minus and ago...
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson <jidanni@HIDDEN> Subject: bug#27482: Acknowledgement (date: minus and ago in same sentence) Message-ID: <handler.27482.B.149839388716395.ack <at> debbugs.gnu.org> References: <87k240s5hy.fsf@HIDDEN> X-Gnu-PR-Message: ack 27482 X-Gnu-PR-Package: coreutils Reply-To: 27482 <at> debbugs.gnu.org Date: Sun, 25 Jun 2017 12:32:02 +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 27482 <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 27482: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D27482 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 29 Oct 2018 03:24:08 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 28 23:24:08 2018 Received: from localhost ([127.0.0.1]:49756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gGy9u-0007kq-6Y for submit <at> debbugs.gnu.org; Sun, 28 Oct 2018 23:24:08 -0400 Received: from mail-pg1-f175.google.com ([209.85.215.175]:32989) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <assafgordon@HIDDEN>) id 1gGy9r-0007kA-MM for control <at> debbugs.gnu.org; Sun, 28 Oct 2018 23:24:04 -0400 Received: by mail-pg1-f175.google.com with SMTP id z2-v6so3198011pgp.0 for <control <at> debbugs.gnu.org>; Sun, 28 Oct 2018 20:24:03 -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=gfWl7RoSsJ0cGmhQmIqC3rsaWPq5RXYVNZ/MCefBdQ0=; b=ftlwEtbAPUcaRP4YrYhzbZw1CcjiI8EOFm8qT/8pF/Do0tte2RI4iVa94pUa68Jluq VNAB4lSZK1Fb3tzsfryizWNnH4A6Eq8puR8cuJeGTri1gSHlJW1YJe6Mq4cOUrxRnBr/ +VPFhJYy5mQ2QvEv5RadX+E7PQ4H8W1Y5IAaNRB36JPq4I+hlSxzV1fU2LCgxFjKxnMm hlzdQrydbi8Oa0WmyqQGhtI2qYwTvoxn0mjmWvYaduCjcGPTyA7CPpP1AXYKMQsXwD5W Q0+cbRB+wTOKfvzXrAX/StbpmoZLN+fizeu+ruIs83RdUiRG2NWna4QeKJmomeqn52ot fR5w== 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=gfWl7RoSsJ0cGmhQmIqC3rsaWPq5RXYVNZ/MCefBdQ0=; b=hc0zGYbRKAwKlCqBJAvhK4Ki4/v5PfIA1jGIIcH4iyRbyF4Vw3nhU31rhODywnCi5T 5QCmicwWYK4mBS8pZYGqrJxzGQStNi9SOWVzB19Ev9xakphral4V1iG7jz7mjYp6nFOD ifV27r2dI6AKtNK2+eQO/Y2qTs+xN4omL1QFDQSLzNIo5WZYu3eOngLrfz+WpN+xt58J riPrkYfYTSQ6bEXqmg+q46sA+jSvmMuPV4viPvODIXVLxc49LKCWm31QldY+K360VR2t LeS2e2RmBSGn5xZ7on5P8R6MKKNP1bJYn6BmIqu8TP9/j1LW4j53gGrNAZtgZ+u8NZ7B Ar5A== X-Gm-Message-State: AGRZ1gL2Oo3/U9UtGcmuy4E384ZtblqYxxWfj7qtzNMQvKzWejE3hsxD cZn5tSCQrFIlK5SeJDF3Ff6kuMpL5dA= X-Google-Smtp-Source: AJdET5cW9Y5FZnftNGW6uuDtQ/AdiXJnBT6Q14iUfH7lM4IKPOroyRCoJdHlaiG3/uiT5tB+UZm+8g== X-Received: by 2002:aa7:8001:: with SMTP id j1-v6mr13152971pfi.73.1540783437288; Sun, 28 Oct 2018 20:23:57 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id u5-v6sm954554pgk.46.2018.10.28.20.23.55 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Oct 2018 20:23:56 -0700 (PDT) To: control <at> debbugs.gnu.org From: Assaf Gordon <assafgordon@HIDDEN> Message-ID: <2ca55255-ebb1-2b2c-1ca6-b9a5becc7621@HIDDEN> Date: Sun, 28 Oct 2018 21:23:55 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.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 27482 wishlist retitle 27482 date: add support for words: "one", "two", etc. [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 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 -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.215.175 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.215.175 listed in list.dnswl.org] 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 27482 wishlist retitle 27482 date: add support for words: "one", "two", etc.
Received: (at control) by debbugs.gnu.org; 29 Oct 2018 03:24:08 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 28 23:24:08 2018 Received: from localhost ([127.0.0.1]:49756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gGy9u-0007kq-6Y for submit <at> debbugs.gnu.org; Sun, 28 Oct 2018 23:24:08 -0400 Received: from mail-pg1-f175.google.com ([209.85.215.175]:32989) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <assafgordon@HIDDEN>) id 1gGy9r-0007kA-MM for control <at> debbugs.gnu.org; Sun, 28 Oct 2018 23:24:04 -0400 Received: by mail-pg1-f175.google.com with SMTP id z2-v6so3198011pgp.0 for <control <at> debbugs.gnu.org>; Sun, 28 Oct 2018 20:24:03 -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=gfWl7RoSsJ0cGmhQmIqC3rsaWPq5RXYVNZ/MCefBdQ0=; b=ftlwEtbAPUcaRP4YrYhzbZw1CcjiI8EOFm8qT/8pF/Do0tte2RI4iVa94pUa68Jluq VNAB4lSZK1Fb3tzsfryizWNnH4A6Eq8puR8cuJeGTri1gSHlJW1YJe6Mq4cOUrxRnBr/ +VPFhJYy5mQ2QvEv5RadX+E7PQ4H8W1Y5IAaNRB36JPq4I+hlSxzV1fU2LCgxFjKxnMm hlzdQrydbi8Oa0WmyqQGhtI2qYwTvoxn0mjmWvYaduCjcGPTyA7CPpP1AXYKMQsXwD5W Q0+cbRB+wTOKfvzXrAX/StbpmoZLN+fizeu+ruIs83RdUiRG2NWna4QeKJmomeqn52ot fR5w== 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=gfWl7RoSsJ0cGmhQmIqC3rsaWPq5RXYVNZ/MCefBdQ0=; b=hc0zGYbRKAwKlCqBJAvhK4Ki4/v5PfIA1jGIIcH4iyRbyF4Vw3nhU31rhODywnCi5T 5QCmicwWYK4mBS8pZYGqrJxzGQStNi9SOWVzB19Ev9xakphral4V1iG7jz7mjYp6nFOD ifV27r2dI6AKtNK2+eQO/Y2qTs+xN4omL1QFDQSLzNIo5WZYu3eOngLrfz+WpN+xt58J riPrkYfYTSQ6bEXqmg+q46sA+jSvmMuPV4viPvODIXVLxc49LKCWm31QldY+K360VR2t LeS2e2RmBSGn5xZ7on5P8R6MKKNP1bJYn6BmIqu8TP9/j1LW4j53gGrNAZtgZ+u8NZ7B Ar5A== X-Gm-Message-State: AGRZ1gL2Oo3/U9UtGcmuy4E384ZtblqYxxWfj7qtzNMQvKzWejE3hsxD cZn5tSCQrFIlK5SeJDF3Ff6kuMpL5dA= X-Google-Smtp-Source: AJdET5cW9Y5FZnftNGW6uuDtQ/AdiXJnBT6Q14iUfH7lM4IKPOroyRCoJdHlaiG3/uiT5tB+UZm+8g== X-Received: by 2002:aa7:8001:: with SMTP id j1-v6mr13152971pfi.73.1540783437288; Sun, 28 Oct 2018 20:23:57 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id u5-v6sm954554pgk.46.2018.10.28.20.23.55 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Oct 2018 20:23:56 -0700 (PDT) To: control <at> debbugs.gnu.org From: Assaf Gordon <assafgordon@HIDDEN> Message-ID: <2ca55255-ebb1-2b2c-1ca6-b9a5becc7621@HIDDEN> Date: Sun, 28 Oct 2018 21:23:55 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.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 27482 wishlist retitle 27482 date: add support for words: "one", "two", etc. [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 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 -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.215.175 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.215.175 listed in list.dnswl.org] 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 27482 wishlist retitle 27482 date: add support for words: "one", "two", etc.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.