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: Fri, 21 Nov 2008 23:03:45 -0500 Message-ID: References: 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 1227327030 9618 80.91.229.12 (22 Nov 2008 04:10:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Nov 2008 04:10:30 +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 Sat Nov 22 05:11:33 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 1L3jqE-0007mn-As for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Nov 2008 05:11:30 +0100 Original-Received: from localhost ([127.0.0.1]:36781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3jp4-00019D-TS for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Nov 2008 23:10:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3jp1-00017T-3N for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 23:10:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3joy-00016x-P4 for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 23:10:14 -0500 Original-Received: from [199.232.76.173] (port=45633 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3joy-00016u-JI for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 23:10:12 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34192) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L3joy-0006Sm-69 for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 23:10:12 -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 mAM4A9Dg023668; Fri, 21 Nov 2008 20:10:10 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAM4A3sN022984; Fri, 21 Nov 2008 20:10:03 -0800 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 22 Nov 2008 04:10: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.122732657220889 (code B ref 1388); Sat, 22 Nov 2008 04:10:03 +0000 Original-Received: (at 1388) by emacsbugs.donarmstrong.com; 22 Nov 2008 04:02:52 +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 mAM42m7v020879 for <1388@emacsbugs.donarmstrong.com>; Fri, 21 Nov 2008 20:02:50 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqEEAMsSJ0nO+KUv/2dsb2JhbACBbdJIgnyBGw X-IronPort-AV: E=Sophos;i="4.33,648,1220241600"; d="scan'208";a="30172082" Original-Received: from 206-248-165-47.dsl.teksavvy.com (HELO pastel.home) ([206.248.165.47]) by ironport2-out.teksavvy.com with ESMTP; 21 Nov 2008 23:02:43 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id E7A0A80FF; Fri, 21 Nov 2008 23:03:45 -0500 (EST) In-Reply-To: (Glenn Morris's message of "Fri, 21 Nov 2008 20:46:53 -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: Fri, 21 Nov 2008 23:10:14 -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:22579 Archived-At: >> echo "1+1" | bc >> and then the return key. Instead of the expected answer 2, eshell >> displays: >> bc 1.06 >> Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. > I think this is because isatty(0) returns 1 on the right-hand side of > an eshell pipe, so bc thinks it is running interactively. Does anyone > know if that is fixable? Yes, an appropriate binding of process-connection-type at the right place and the right time should do the trick. Stefan