[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc
From: |
Glenn Morris |
Subject: |
bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc |
Date: |
Fri, 21 Nov 2008 20:46:53 -0500 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
"Jhair Tocancipa Triana" wrote:
> Type the following after M-x eshell RET:
>
> 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?
- bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc,
Glenn Morris <=
- bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc, Stefan Monnier, 2008/11/21
- bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc, Glenn Morris, 2008/11/22
- bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc, Glenn Morris, 2008/11/22
- bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc, Stefan Monnier, 2008/11/22
- bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc, Glenn Morris, 2008/11/24
- bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc, Stefan Monnier, 2008/11/24
- bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc, Glenn Morris, 2008/11/24
- bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc, Stefan Monnier, 2008/11/24
- bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc, Glenn Morris, 2008/11/24
- Processed: Re: bug#1388: 23.0.60; Emacs shell problem with echo "1+1" | bc, Emacs bug Tracking System, 2008/11/24