[Top][All Lists]

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

eshell multiple output targets fix

From: Bob Halley
Subject: eshell multiple output targets fix
Date: 22 Oct 2002 00:53:32 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

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


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)))))

reply via email to

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