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

From: Michael Albinus <[email-masked]>
Date: Sat, 25 Nov 2017 19:32:25 +0100

Pierre Neidhardt <[email-masked]> writes:

Hi Piere,

> The issue here is mostly my lack of awareness about what is an Elisp
> command and what is a system program.

You can always use `which' in the eshell buffer:

--8<---------------cut here---------------start------------->8---
~ $ which date
eshell/date is an alias for ‘current-time-string’ in ‘em-unix.el’.
~ $ which *date
/bin/date
--8<---------------cut here---------------end--------------->8---

And `which' itself is an eshell function:

--8<---------------cut here---------------start------------->8---
~ $ which which
eshell/which is a compiled Lisp function in ‘esh-cmd.el’.
~ $ which *which
/usr/bin/which
--8<---------------cut here---------------end--------------->8---

See also (info "(eshell) Built-ins")

Best regards, Michael.