help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: In eshell, how to translate aliases that "eval" output from scripts


From: Joel Reicher
Subject: Re: In eshell, how to translate aliases that "eval" output from scripts
Date: Mon, 12 Aug 2024 09:48:54 +1000
User-agent: Gnus/5.13 (Gnus v5.13)

Joel Reicher <joel.reicher@gmail.com> writes:

"KARR, DAVID" <dk068x@att.com> writes:

In my bash config, I have aliases whose value is like ". scriptname". These execute "scriptname", which is in the path, the output of which are "export" and other shell commands. This is a way of having a shell command implicitly set environment variables that are used by later command invocations. What's the proper way to translate this to eshell?

If I've understood you correctly, you will need to re-implement the scripts/aliases in lisp.

Oh, I should perhaps also mention that eshell has the notion of an eshell script, which you might prefer to "native" lisp.

(info "(eshell) Scripts")

Cheers,

       - Joel



reply via email to

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