From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bruno Haible Newsgroups: gmane.emacs.bugs Subject: bug#3344: eshell environment does not override TERM Date: Thu, 21 May 2009 22:02:42 +0200 Message-ID: <200905212202.44024.bruno@clisp.org> Reply-To: Bruno Haible , 3344@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242938011 27808 80.91.229.12 (21 May 2009 20:33:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 May 2009 20:33:31 +0000 (UTC) To: bug-gnu-emacs@gnu.org, johnw@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 21 22:33:24 2009 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 1M7Ex5-0005RC-0K for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 May 2009 22:33:22 +0200 Original-Received: from localhost ([127.0.0.1]:48156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7Ex4-0007sN-6J for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 May 2009 16:33:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M7Ew3-0007am-8M for bug-gnu-emacs@gnu.org; Thu, 21 May 2009 16:32:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7Evy-0007Yx-OP for bug-gnu-emacs@gnu.org; Thu, 21 May 2009 16:32:14 -0400 Original-Received: from [199.232.76.173] (port=52184 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7Evy-0007Yo-Ab for bug-gnu-emacs@gnu.org; Thu, 21 May 2009 16:32:10 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58247) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M7Evx-00085j-5B for bug-gnu-emacs@gnu.org; Thu, 21 May 2009 16:32:10 -0400 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 n4LKVvRh021793; Thu, 21 May 2009 13:31:58 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n4LKK3Ph017318; Thu, 21 May 2009 13:20:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Bruno Haible Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 21 May 2009 20:20:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3344 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124293687915741 (code B ref -1); Thu, 21 May 2009 20:20:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 21 May 2009 20:14:39 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4LKEYh9015734 for ; Thu, 21 May 2009 13:14:35 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M7Eev-0003m0-GQ for bug-gnu-emacs@gnu.org; Thu, 21 May 2009 16:14:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7Eeq-0003kJ-PG for bug-gnu-emacs@gnu.org; Thu, 21 May 2009 16:14:32 -0400 Original-Received: from [199.232.76.173] (port=42798 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7Eeq-0003kC-Bp for bug-gnu-emacs@gnu.org; Thu, 21 May 2009 16:14:28 -0400 Original-Received: from mo-p05-ob.rzone.de ([81.169.146.182]:58711) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M7Eeq-0006BJ-00 for bug-gnu-emacs@gnu.org; Thu, 21 May 2009 16:14:28 -0400 X-RZG-AUTH: :Ln4Re0/tc/4+RPs3/JP8/Hc3Cqxuq9k84i0ZqlPB1QI5ca9K8r5piikymA== X-RZG-CLASS-ID: mo05 Original-Received: from linuix.haible.de (dslb-088-068-043-109.pools.arcor-ip.net [88.68.43.109]) by post.strato.de (fruni mo48) (RZmta 18.34) with ESMTP id R06f74l4LJWIsB ; Thu, 21 May 2009 22:03:04 +0200 (MEST) User-Agent: KMail/1.9.9 Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 21 May 2009 16:32:14 -0400 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:28071 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: When I invoke M-x eshell, subprocesses see the same TERM environment variable as the one from which emacs was launched. For example, when I launch emacs from an xterm, which has TERM=xterm set, then processes run from within eshell will see TERM=xterm as well and emit ANSI control codes for bold or colored output. But eshell does not interpret these control codes, and shows weird-looking ASCII characters instead. Example: M-x eshell echo $TERM wget http://ftp.gnu.org/gnu/libsigsegv/libsigsegv-2.6.tar.gz tar xfz libsigsegv-2.6.tar.gz cd libsigsegv-2.6 ./configure shows: ^[[1mBuild Tools:^[[m Likewise with packages that use automake's new 'color-tests' option. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/22.2/etc/DEBUG for instructions. In GNU Emacs 22.2.1 (x86_64-suse-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-09-12 on hammer22 Windowing system distributor `The X.Org Foundation', version 11.0.10400090 configured using `configure '--with-gcc' '--with-pop' '--without-hesiod' '--with-kerberos' '--with-kerberos5' '--with-leim' '--with-xim' '--with-system-malloc' '--prefix=/usr' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--with-x' '--with-sound' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-x-toolkit=lucid' '--x-includes=/usr/include' '--x-libraries=/usr/lib64:/usr/share/X11' '--build=x86_64-suse-linux-gnu' 'build_alias=x86_64-suse-linux-gnu' 'CC=gcc' 'CFLAGS=-O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -D_GNU_SOURCE -std=gnu89 -pipe -fno-strict-aliasing -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label -Wno-unprototyped-calls -DSYSTEM_PURESIZE_ EXTRA=55000 -DSITELOAD_PURESIZE_EXTRA=10000 ' 'LDFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: show-paren-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x n b u g e m a r e r e p o r Recent messages: Loading paren...done Loading cl-indent...done Loading derived...done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Loading help-mode...done Making completion list... [2 times] Loading emacsbug... Loading regexp-opt...done Loading emacsbug...done