[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#29157: 25.3; Eshell parsing fails sometimes, e.g. "date" and "sed"

From: Eli Zaretskii
Subject: bug#29157: 25.3; Eshell parsing fails sometimes, e.g. "date" and "sed"
Date: Sun, 26 Nov 2017 17:33:51 +0200

> From: "John Wiegley" <address@hidden>
> Cc: Pierre Neidhardt <address@hidden>,  address@hidden,  address@hidden
> Date: Sat, 25 Nov 2017 19:21:01 -0800
> >>>>> "EZ" == Eli Zaretskii <address@hidden> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]