From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc Date: Sat, 22 Nov 2008 23:28:27 -0500 Message-ID: References: <7p1vx3jwyo.fsf@fencepost.gnu.org> <18728.51742.251222.477040@fencepost.gnu.org> Reply-To: Stefan Monnier , 1388@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227415837 18112 80.91.229.12 (23 Nov 2008 04:50:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Nov 2008 04:50:37 +0000 (UTC) Cc: 1388@emacsbugs.donarmstrong.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 23 05:51:39 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L46wd-0005zB-EF for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Nov 2008 05:51:39 +0100 Original-Received: from localhost ([127.0.0.1]:54614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L46vU-0002ot-Fl for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Nov 2008 23:50:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L46vI-0002lM-HF for bug-gnu-emacs@gnu.org; Sat, 22 Nov 2008 23:50:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L46vG-0002kv-P9 for bug-gnu-emacs@gnu.org; Sat, 22 Nov 2008 23:50:15 -0500 Original-Received: from [199.232.76.173] (port=38580 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L46vG-0002kk-Ap for bug-gnu-emacs@gnu.org; Sat, 22 Nov 2008 23:50:14 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36347) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L46vE-00019g-O3 for bug-gnu-emacs@gnu.org; Sat, 22 Nov 2008 23:50:13 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAN4oAhF025023; Sat, 22 Nov 2008 20:50:10 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAN4Z38V020647; Sat, 22 Nov 2008 20:35:03 -0800 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 23 Nov 2008 04:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1388 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1388-submit@emacsbugs.donarmstrong.com id=B1388.122741452319249 (code B ref 1388); Sun, 23 Nov 2008 04:35:03 +0000 Original-Received: (at 1388) by emacsbugs.donarmstrong.com; 23 Nov 2008 04:28:43 +0000 Original-Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAN4SdXH019242 for <1388@emacsbugs.donarmstrong.com>; Sat, 22 Nov 2008 20:28:41 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuoEAFJrKEnO+J+z/2dsb2JhbACBbc4UgnyBHA X-IronPort-AV: E=Sophos;i="4.33,653,1220241600"; d="scan'208";a="30190517" Original-Received: from 206-248-159-179.dsl.teksavvy.com (HELO pastel.home) ([206.248.159.179]) by ironport2-out.teksavvy.com with ESMTP; 22 Nov 2008 23:28:27 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 71CDC8101; Sat, 22 Nov 2008 23:28:27 -0500 (EST) In-Reply-To: <18728.51742.251222.477040@fencepost.gnu.org> (Glenn Morris's message of "Sat, 22 Nov 2008 22:12:30 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 22 Nov 2008 23:50:15 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22600 Archived-At: > 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