all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Glenn Morris <rgm@gnu.org>
Cc: 1388@emacsbugs.donarmstrong.com
Subject: bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc
Date: Fri, 21 Nov 2008 23:03:45 -0500	[thread overview]
Message-ID: <jwvabbsif1f.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <hz3ahkfs6q.fsf@fencepost.gnu.org> (Glenn Morris's message of "Fri, 21 Nov 2008 20:46:53 -0500")

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






  reply	other threads:[~2008-11-22  4:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9askpji12r.fsf@fencepost.gnu.org>
     [not found] ` <dfiqqisu34.fsf@fencepost.gnu.org>
2008-11-22  1:46   ` bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc Glenn Morris
2008-11-22  4:03     ` Stefan Monnier [this message]
2008-11-22 21:02       ` Glenn Morris
2008-11-23  3:12         ` Glenn Morris
2008-11-23  4:28           ` Stefan Monnier
2008-11-24  7:47             ` Glenn Morris
2008-11-24 16:15               ` Stefan Monnier
2008-11-24 17:26                 ` Glenn Morris
2008-11-25  3:21                   ` Stefan Monnier
2008-11-25  4:31                     ` Glenn Morris
2008-11-25  4:40                       ` Processed: " Emacs bug Tracking System
2008-11-27 18:21                       ` Stefan Monnier
2008-11-29  2:34                         ` Glenn Morris
2008-11-23  3:25   ` bug#1388: marked as done (23.0.60; Emacs shell problem with echo "1+1" | bc) Emacs bug Tracking System
2008-11-30  1:35   ` Emacs bug Tracking System

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvabbsif1f.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=1388@emacsbugs.donarmstrong.com \
    --cc=rgm@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.