GNU bug report logs - #1388
23.0.60; Emacs shell problem with echo "1+1" | bc

Previous Next

Package: emacs;

Reported by: "Jhair Tocancipa Triana" <jhair.tocancipa <at> gmail.com>

Date: Thu, 20 Nov 2008 08:10:03 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #29 received at 1388 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 1388 <at> debbugs.gnu.org
Subject: Re: bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc
Date: Sat, 22 Nov 2008 23:28:27 -0500
> I've installed a fix that sets process-connection-type to nil for
> every element of a pipeline but the first. Or do you think the first
> element should have p-c-t nil as well?

> Currently, the first/last elements in an eshell pipeline have:
> stdin = tty/non-tty, stdout = tty/non-tty;
> whereas in a "real" shell pipeline they have:
> stdin = tty/non-tty, stdout = non-tty/tty;

> ie I chose to get the input right over the output.

Not sure if it's better in general.
Maybe we should just leave the code as is for now, but add a comment
explaining the problem.  For the longer term we can either try your
approach, or better try and come up with a way to make it work right
(i.e. extending start-process).


        Stefan




This bug report was last modified 15 years and 183 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.