From: Bob Halley <halley@play-bow.org>
Cc: emacs-devel@gnu.org
Subject: eshell multiple output targets fix
Date: 22 Oct 2002 00:53:32 -0700 [thread overview]
Message-ID: <m365vuewoz.fsf@woof.play-bow.org> (raw)
The Eshell documentation says that Eshell can write to multiple output
targets, e.g.
(+ 1 2) > a > b > c ; prints number to all three files
When I have tried this, it has not worked; the last redirect target
was the only file written.
Making the following change to esh-io.el fixed things. Basically the
problem was that the value stored in 'current' was not a list, so the
(and (listp current) (not member where current)) appending logic never
ran.
/Bob
Index: esh-io.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/eshell/esh-io.el,v
retrieving revision 1.6
diff -u -r1.6 esh-io.el
--- esh-io.el 16 Feb 2002 09:42:53 -0000 1.6
+++ esh-io.el 22 Oct 2002 07:47:14 -0000
@@ -396,7 +396,7 @@
(if (and (listp current)
(not (member where current)))
(setq current (append current (list where)))
- (setq current where))
+ (setq current (list where)))
(if (not (aref eshell-current-handles index))
(aset eshell-current-handles index (cons nil 1)))
(setcar (aref eshell-current-handles index) current)))))
next reply other threads:[~2002-10-22 7:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-22 7:53 Bob Halley [this message]
2002-10-22 17:56 ` eshell multiple output targets fix John Wiegley
2002-10-22 18:10 ` Bob Halley
2002-10-22 18:22 ` John Wiegley
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=m365vuewoz.fsf@woof.play-bow.org \
--to=halley@play-bow.org \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).