all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Milan Zimmermann <milan.zimmermann@gmail.com>
To: emacs-devel@gnu.org
Subject: Checking if this is a Eshell bug in emacs 29: Should eshell redirect all output in esh script to stdout
Date: Wed, 23 Nov 2022 13:56:20 -0500	[thread overview]
Message-ID: <CAEc2VK0h=B6JtcZKC2Smdnn4NBPXMQ=DeHPc_WHM8sefdWB1AQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 753 bytes --]

Hi,

I would like to check here before reporting an Eshell bug.

A script named 'redirect-echo.esh' with two echo commands.

Emacs 29: Sourcing it and redirecting output to a file, results in the
first echo string ('hello') showing in eshell, only the second
('there')(presumably because it is last) showing in the output file:

tmp $ cat redirect-echo.esh
echo hello
echo there
tmp $ source redirect-echo.esh > redirect-echo.out
hello
tmp $ cat redirect-echo.out
theretmp $

As a note, the same behavior if elisp "print" is used instead of echo. Also
the same behavior if I redirect output to an Emacs buffer instead of the
file.

 I believe this is a bug but I am not sure about Eshell's intended
features, so I wanted to check first.

Thanks,

Milan

[-- Attachment #2: Type: text/html, Size: 936 bytes --]

             reply	other threads:[~2022-11-23 18:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-23 18:56 Milan Zimmermann [this message]
2022-11-23 20:30 ` Checking if this is a Eshell bug in emacs 29: Should eshell redirect all output in esh script to stdout Jim Porter
2022-11-23 20:46   ` Milan Zimmermann
2022-11-24  6:20   ` Eli Zaretskii
2022-11-24  6:32     ` Jim Porter

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='CAEc2VK0h=B6JtcZKC2Smdnn4NBPXMQ=DeHPc_WHM8sefdWB1AQ@mail.gmail.com' \
    --to=milan.zimmermann@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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.