bug-gnu-emacs
[Top][All Lists]
Advanced

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]