all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joel Reicher <joel.reicher@gmail.com>
To: "KARR, DAVID" <dk068x@att.com>
Cc: "Help-gnu-emacs@gnu.org" <Help-gnu-emacs@gnu.org>
Subject: Re: In eshell, how to translate aliases that "eval" output from scripts
Date: Mon, 12 Aug 2024 09:48:54 +1000	[thread overview]
Message-ID: <86zfpi39jt.fsf@gmail.com> (raw)
In-Reply-To: <867ccnl2it.fsf@gmail.com> (Joel Reicher's message of "Sun, 11 Aug 2024 21:31:06 +1000")

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	other threads:[~2024-08-11 23:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-10 21:16 In eshell, how to translate aliases that "eval" output from scripts KARR, DAVID
2024-08-10 22:26 ` tpeplt
2024-08-11  6:53   ` KARR, DAVID
2024-08-11 11:31 ` Joel Reicher
2024-08-11 23:48   ` Joel Reicher [this message]
2024-08-14  2:15 ` James Thomas
2024-08-14 11:00   ` Joel Reicher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86zfpi39jt.fsf@gmail.com \
    --to=joel.reicher@gmail.com \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=dk068x@att.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.