GNU bug report logs -
#29157
25.3; Eshell parsing fails sometimes, e.g. "date" and "sed"
Previous Next
Reported by: Pierre Neidhardt <ambrevar <at> gmail.com>
Date: Sun, 5 Nov 2017 11:38:02 UTC
Severity: normal
Found in version 25.3
Fixed in version 27.1
Done: Noam Postavsky <npostavs <at> users.sourceforge.net>
Bug is archived. No further changes may be made.
Full log
Message #77 received at 29157 <at> debbugs.gnu.org (full text, mbox):
> From: "John Wiegley" <johnw <at> gnu.org>
> Cc: Pierre Neidhardt <ambrevar <at> gmail.com>, 29157 <at> debbugs.gnu.org, npostavs <at> users.sourceforge.net
> Date: Sat, 25 Nov 2017 19:21:01 -0800
>
> >>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> 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.
This bug report was last modified 7 years and 159 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.