From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29157: 25.3; Eshell parsing fails sometimes, e.g. "date" and "sed" Date: Sun, 26 Nov 2017 17:33:51 +0200 Message-ID: <83o9np6om8.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1511710512 9881 195.159.176.226 (26 Nov 2017 15:35:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Nov 2017 15:35:12 +0000 (UTC) Cc: 29157@debbugs.gnu.org, ambrevar@gmail.com, npostavs@users.sourceforge.net To: "John Wiegley" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 26 16:35:08 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 1eIyxV-000290-T9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Nov 2017 16:35:06 +0100 Original-Received: from localhost ([::1]:57043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIyxd-0004O0-CM for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Nov 2017 10:35:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIyxV-0004Mc-F5 for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 10:35:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIyxS-0007K8-7l for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 10:35:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50784) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eIyxS-0007K4-3T for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 10:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eIyxR-000777-UT for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 10:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Nov 2017 15:35:01 +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.151171046727296 (code B ref 29157); Sun, 26 Nov 2017 15:35:01 +0000 Original-Received: (at 29157) by debbugs.gnu.org; 26 Nov 2017 15:34:27 +0000 Original-Received: from localhost ([127.0.0.1]:59465 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIyws-00076C-W9 for submit@debbugs.gnu.org; Sun, 26 Nov 2017 10:34:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:32855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIywr-00075z-7l for 29157@debbugs.gnu.org; Sun, 26 Nov 2017 10:34:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIywj-00073W-2c for 29157@debbugs.gnu.org; Sun, 26 Nov 2017 10:34:20 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIywX-0006y6-5i; Sun, 26 Nov 2017 10:34:05 -0500 Original-Received: from [176.228.60.248] (port=4924 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eIywW-0005gs-JB; Sun, 26 Nov 2017 10:34:05 -0500 In-reply-to: (johnw@gnu.org) 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:140413 Archived-At: > From: "John Wiegley" > Cc: Pierre Neidhardt , 29157@debbugs.gnu.org, npostavs@users.sourceforge.net > Date: Sat, 25 Nov 2017 19:21:01 -0800 > > >>>>> "EZ" == Eli Zaretskii writes: > > EZ> Not just eshell/date: many Eshell built-ins behave like that, and they do > EZ> that on purpose. > > eshell/date is an alias for `current-time-string'. The fact that this Lisp > function accepts arguments, and those arguments can be passed on the Eshell > command-line, isn't something I thought of at the time. Maybe not in this case, but other Eshell commands definitely feature similar behaviors, and there you cannot convince me it's an accident, because the behavior is documented in the doc string. > In hindsight, a separate eshell/date function should have been created that > would handle its arguments like the system command. There is such a function: *date.