* eval bash command at eshell
@ 2016-10-05 2:52 Xi Shen
2016-10-05 10:29 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Xi Shen @ 2016-10-05 2:52 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
When I am working in eshell, the "eval" at the command refers to the eval
function in elisp...how can I get the bash "eval" working in the eshell
environment?
--
Thanks,
David S.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: eval bash command at eshell
2016-10-05 2:52 eval bash command at eshell Xi Shen
@ 2016-10-05 10:29 ` Eli Zaretskii
2016-10-05 13:14 ` Xi Shen
0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2016-10-05 10:29 UTC (permalink / raw)
To: help-gnu-emacs
> From: Xi Shen <davidshen84@gmail.com>
> Date: Wed, 05 Oct 2016 02:52:55 +0000
>
> When I am working in eshell, the "eval" at the command refers to the eval
> function in elisp...how can I get the bash "eval" working in the eshell
> environment?
According to the Eshell manual (hint, hint), *eval should do that,
i.e. prepend an asterisk to a command to invoke the external command.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: eval bash command at eshell
2016-10-05 10:29 ` Eli Zaretskii
@ 2016-10-05 13:14 ` Xi Shen
2016-10-05 13:27 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Xi Shen @ 2016-10-05 13:14 UTC (permalink / raw)
To: Eli Zaretskii, help-gnu-emacs
Hi Eli,
I tried it, but I got
eval: external command not found
But I think "eval" is a built-in command, right? It seems eshell try to
execute it as a external command.
On Wed, Oct 5, 2016 at 6:30 PM Eli Zaretskii <eliz@gnu.org> wrote:
> > From: Xi Shen <davidshen84@gmail.com>
> > Date: Wed, 05 Oct 2016 02:52:55 +0000
> >
> > When I am working in eshell, the "eval" at the command refers to the eval
> > function in elisp...how can I get the bash "eval" working in the eshell
> > environment?
>
> According to the Eshell manual (hint, hint), *eval should do that,
> i.e. prepend an asterisk to a command to invoke the external command.
>
> --
Thanks,
David S.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: eval bash command at eshell
2016-10-05 13:14 ` Xi Shen
@ 2016-10-05 13:27 ` Eli Zaretskii
2016-10-07 0:54 ` Xi Shen
0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2016-10-05 13:27 UTC (permalink / raw)
To: help-gnu-emacs
> From: Xi Shen <davidshen84@gmail.com>
> Date: Wed, 05 Oct 2016 13:14:24 +0000
>
> I tried it, but I got
>
> eval: external command not found
>
> But I think "eval" is a built-in command, right? It seems eshell try to execute it as a external command.
Yes, I just told you how to disable the automatic preference of Lisp
functions in this case.
As for invoking the shell's built-in: what exactly do you expect that
to do, when you invoke shell's 'eval' from within Eshell? Eshell is
not a Posix shell.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: eval bash command at eshell
2016-10-05 13:27 ` Eli Zaretskii
@ 2016-10-07 0:54 ` Xi Shen
2016-10-07 7:52 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Xi Shen @ 2016-10-07 0:54 UTC (permalink / raw)
To: Eli Zaretskii, help-gnu-emacs
Yes, I know eshell is not a real POSIX shell. But I think it should mimic
as much as possible as a POSIX shell, or not?
If eshell is not expected to simulate a complete POSIX shell, then what is
the equivalent of "eval" in POSIX shell that is in eshell?
On Wed, Oct 5, 2016 at 9:28 PM Eli Zaretskii <eliz@gnu.org> wrote:
> > From: Xi Shen <davidshen84@gmail.com>
> > Date: Wed, 05 Oct 2016 13:14:24 +0000
> >
> > I tried it, but I got
> >
> > eval: external command not found
> >
> > But I think "eval" is a built-in command, right? It seems eshell try to
> execute it as a external command.
>
> Yes, I just told you how to disable the automatic preference of Lisp
> functions in this case.
>
> As for invoking the shell's built-in: what exactly do you expect that
> to do, when you invoke shell's 'eval' from within Eshell? Eshell is
> not a Posix shell.
>
> --
Thanks,
David S.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-10-07 7:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-05 2:52 eval bash command at eshell Xi Shen
2016-10-05 10:29 ` Eli Zaretskii
2016-10-05 13:14 ` Xi Shen
2016-10-05 13:27 ` Eli Zaretskii
2016-10-07 0:54 ` Xi Shen
2016-10-07 7:52 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).