unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: James Thomas <jimjoe@gmx.net>
To: "KARR, DAVID" <dk068x@att.com>
Cc: "Help-gnu-emacs@gnu.org" <Help-gnu-emacs@gnu.org>
Subject: Re: How to get eshell to do what I used to do with shell
Date: Sun, 11 Aug 2024 15:19:39 +0530	[thread overview]
Message-ID: <86jzgnie30.fsf@outlook.com> (raw)
In-Reply-To: <DM3PR02MB1025616AFA4DCB5EACF6C95EE9DBB2@DM3PR02MB10256.namprd02.prod.outlook.com> (DAVID KARR's message of "Sat, 10 Aug 2024 21:06:03 +0000")

KARR, DAVID wrote:

> By "different remotes", do you mean different hosts? I wouldn't be
> doing that at all.

All right. But this should be applicable even then:

> I don't understand that. I will be performing different tasks in
> different directories, and the output for tasks in one directory need
> to kept separate from the output for tasks in other directories.

For e.g. you could add something like this to eshell-pre-command-hook:

(lambda () (eshell-set-output-handle 1 'insert (eshell-get-buffer
(concat "output-" (eshell/pwd)))))

...if you don't want to do (info "(eshell) Redirection") manually.

Eshell is not that well documented, though. I don't know it well either.

Regards,
James



      reply	other threads:[~2024-08-11  9:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-10 17:00 How to get eshell to do what I used to do with shell KARR, DAVID
2024-08-10 19:10 ` tpeplt
2024-08-10 19:52   ` KARR, DAVID
2024-08-10 22:32     ` tpeplt
2024-08-11 11:27     ` Joel Reicher
2024-08-10 21:01 ` James Thomas
2024-08-10 21:06   ` KARR, DAVID
2024-08-11  9:49     ` James Thomas [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=86jzgnie30.fsf@outlook.com \
    --to=jimjoe@gmx.net \
    --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.
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).