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: Sat, 25 Nov 2017 21:29:08 +0200 Message-ID: <83y3mu6ttn.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1511638217 11505 195.159.176.226 (25 Nov 2017 19:30:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 25 Nov 2017 19:30:17 +0000 (UTC) Cc: 29157@debbugs.gnu.org, npostavs@users.sourceforge.net To: Pierre Neidhardt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 25 20:30:13 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 1eIg9S-0002CH-JS for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Nov 2017 20:30:10 +0100 Original-Received: from localhost ([::1]:54176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIg9V-0002E7-8P for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Nov 2017 14:30:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIg9L-0002BJ-RP for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2017 14:30:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIg9K-0003Uh-K5 for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2017 14:30:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49534) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eIg9K-0003Ud-GF for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2017 14:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eIg9K-00015w-6N for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2017 14:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Nov 2017 19:30: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.15116381844162 (code B ref 29157); Sat, 25 Nov 2017 19:30:02 +0000 Original-Received: (at 29157) by debbugs.gnu.org; 25 Nov 2017 19:29:44 +0000 Original-Received: from localhost ([127.0.0.1]:58215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIg91-000154-UI for submit@debbugs.gnu.org; Sat, 25 Nov 2017 14:29:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIg90-00014q-Dj for 29157@debbugs.gnu.org; Sat, 25 Nov 2017 14:29:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIg8s-0003Go-3O for 29157@debbugs.gnu.org; Sat, 25 Nov 2017 14:29:37 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIg8s-0003Gi-0U; Sat, 25 Nov 2017 14:29:34 -0500 Original-Received: from [176.228.60.248] (port=4500 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eIg8q-0005pC-8Q; Sat, 25 Nov 2017 14:29:33 -0500 In-reply-to: <87lgiui6qc.fsf@gmail.com> (message from Pierre Neidhardt on Sat, 25 Nov 2017 18:54:51 +0100) 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:140376 Archived-At: > From: Pierre Neidhardt > Cc: Noam Postavsky , 29157@debbugs.gnu.org > Date: Sat, 25 Nov 2017 18:54:51 +0100 > > > ~/git/emacs/branch $ date 42 > > Wed Dec 31 19:00:42 1969 > > But > > ~/git/emacs/branch $ *date 42 > > /bin/date: invalid date ‘42’ > > > > So I'm not sure such a naïve solution is TRT in this case, because we > > are losing valuable features by doing that, and those features are not > > just an accident, they were intentionally included in Eshell. > > I think you are right. I did not know that eshell/date could be used > this way. Not just eshell/date: many Eshell built-ins behave like that, and they do that on purpose. > The issue here is mostly my lack of awareness about what is an Elisp > command and what is a system program. Why do you need to know that? If you want to know that so you could always get the same responses as from another system shell, then perhaps we should have an option to tell Eshell to always invoke an external program (maybe we already have such an option, but I couldn't find it). > Maybe having different syntax highlighting for the "verb" depending on > whether it's a system program or an Elisp command would help avoiding > the pitfall. Isn't it true that a verb that doesn't begin with a '*' is _never_ a system program in Eshell?