From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.bugs Subject: bug#29157: 25.3; Eshell parsing fails sometimes, e.g. "date" and "sed" Date: Thu, 21 Dec 2017 00:17:50 -0800 Message-ID: References: <87tvy9rm5z.fsf@gmail.com> <87lgjk7rpd.fsf@users.sourceforge.net> <87lgjkoloe.fsf@gmail.com> <87shd5znzf.fsf@users.sourceforge.net> <87po891o1t.fsf@gmail.com> <87po89ywv5.fsf@users.sourceforge.net> <8360a1arlf.fsf@gnu.org> <87lgiui6qc.fsf@gmail.com> <83y3mu6ttn.fsf@gnu.org> <83o9np6om8.fsf@gnu.org> <83375075ww.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513844239 18189 195.159.176.226 (21 Dec 2017 08:17:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Dec 2017 08:17:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (darwin) Cc: 29157@debbugs.gnu.org, ambrevar@gmail.com, npostavs@users.sourceforge.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 21 09:17:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRw2U-00049I-QA for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Dec 2017 09:17:15 +0100 Original-Received: from localhost ([::1]:38688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRw4P-00030U-Qg for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Dec 2017 03:19:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRw4K-00030D-BJ for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 03:19:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRw4E-0002e6-LM for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 03:19:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36467) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRw4E-0002dv-HX for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 03:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eRw4E-0004Hn-CA for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 03:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: John Wiegley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Dec 2017 08:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29157 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29157-submit@debbugs.gnu.org id=B29157.151384432116448 (code B ref 29157); Thu, 21 Dec 2017 08:19:02 +0000 Original-Received: (at 29157) by debbugs.gnu.org; 21 Dec 2017 08:18:41 +0000 Original-Received: from localhost ([127.0.0.1]:45148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRw3s-0004HE-LD for submit@debbugs.gnu.org; Thu, 21 Dec 2017 03:18:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57395) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRw3r-0004H2-Br for 29157@debbugs.gnu.org; Thu, 21 Dec 2017 03:18:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRw3j-0002M7-CL for 29157@debbugs.gnu.org; Thu, 21 Dec 2017 03:18:34 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRw3j-0002M1-7Z; Thu, 21 Dec 2017 03:18:31 -0500 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:44521) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1eRw3i-0007YX-OF; Thu, 21 Dec 2017 03:18:30 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 444D920C10; Thu, 21 Dec 2017 03:18:30 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Thu, 21 Dec 2017 03:18:30 -0500 X-ME-Sender: Original-Received: from localhost (76-234-69-149.lightspeed.frokca.sbcglobal.net [76.234.69.149]) by mail.messagingengine.com (Postfix) with ESMTPA id BEB322463E; Thu, 21 Dec 2017 03:18:29 -0500 (EST) In-Reply-To: <83375075ww.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 27 Nov 2017 05:32:31 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:141324 Archived-At: >>>>> "EZ" == Eli Zaretskii writes: EZ> If someone wants to work on Eshell's 'date' so that it accepts more EZ> complicated arguments that the Coreutils version does, they should feel EZ> free, of course. I imagine it would start somewhere like this: --8<---------------cut here---------------start------------->8--- (defun eshell/date (&rest args) "Implementation of date in Lisp." (setq args (eshell-flatten-list args)) (eshell-eval-using-options "rm" args '( (?d "date" nil nil "display time described by STRING, not 'now'") (nil "debug" nil nil "annotate the parsed date and warn about questionable usage") (?f "file" nil nil "like --date; once for each line of DATEFILE") (?I "iso-8601" nil nil "output date/time in ISO 8601 format") (?R "rfc-email" nil nil "output date and time in RFC 5322 format") (nil "rfc-3339" nil nil "output date/time in RFC 3339 format") (?r "reference" nil nil "display the last modification time of FILE") (?s "set" nil nil "set time described by STRING") (?u "utc" nil nil "print or set Coordinated Universal Time (UTC)") (nil "universal" nil nil "print or set Coordinated Universal Time (UTC)") (nil "help" nil nil "display this help and exit") (nil "version" nil nil "output version information and exit") :preserve-args :external "date" :show-usage :usage "[OPTION]... [+FORMAT] Display the current time in the given FORMAT, or set the system date.") (while args (let ((entry (car args))) ) (setq args (cdr args))) nil)) --8<---------------cut here---------------end--------------->8--- -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2