From unknown Sat Jun 14 18:53:51 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3344: eshell environment does not override TERM Reply-To: Bruno Haible , 3344@debbugs.gnu.org Resent-From: Bruno Haible Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 21 May 2009 20:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 3344 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124293687915741 (code B ref -1); Thu, 21 May 2009 20:20:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 21 May 2009 20:14:39 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA,FVGT_m_MULTI_ODD autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 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 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 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 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 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) From: Bruno Haible To: bug-gnu-emacs@gnu.org, johnw@gnu.org Date: Thu, 21 May 2009 22:02:42 +0200 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905212202.44024.bruno@clisp.org> X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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 From unknown Sat Jun 14 18:53:51 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3344: eshell environment does not override TERM Reply-To: Stefan Monnier , 3344@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 22 May 2009 01:35:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3344 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3344-submit@emacsbugs.donarmstrong.com id=B3344.124295581715699 (code B ref 3344); Fri, 22 May 2009 01:35:06 +0000 Received: (at 3344) by emacsbugs.donarmstrong.com; 22 May 2009 01:30:17 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.0 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4M1UCt6015321 for <3344@emacsbugs.donarmstrong.com>; Thu, 21 May 2009 18:30:13 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgkGAG+dFUpFxKZe/2dsb2JhbACBT9BahAsFhXk X-IronPort-AV: E=Sophos;i="4.41,230,1241409600"; d="scan'208";a="38914920" Received: from 69-196-166-94.dsl.teksavvy.com (HELO pastel.home) ([69.196.166.94]) by ironport2-out.teksavvy.com with ESMTP; 21 May 2009 21:30:06 -0400 Received: by pastel.home (Postfix, from userid 20848) id 5899C7F29; Thu, 21 May 2009 21:30:06 -0400 (EDT) From: Stefan Monnier To: Bruno Haible Cc: 3344@debbugs.gnu.org, johnw@gnu.org Message-ID: References: <200905212202.44024.bruno@clisp.org> Date: Thu, 21 May 2009 21:30:06 -0400 In-Reply-To: <200905212202.44024.bruno@clisp.org> (Bruno Haible's message of "Thu, 21 May 2009 22:02:42 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > When I invoke M-x eshell, subprocesses see the same TERM > environment variable as the one from which emacs was launched. In Emacs-23, the $TERM value with which Emacs was started is fairly quickly thrown away so that no subprocess will inherit it (after all, Emacs has no way to run a process and give it access to the tty in which Emacs is running). Can you try again with the Emacs-23 pretest to confirm that the bug is fixed? Stefan From unknown Sat Jun 14 18:53:51 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3344: eshell environment does not override TERM Reply-To: Bruno Haible , 3344@debbugs.gnu.org Resent-From: Bruno Haible Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 22 May 2009 02:20:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3344 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3344-submit@emacsbugs.donarmstrong.com id=B3344.124295859129999 (code B ref 3344); Fri, 22 May 2009 02:20:05 +0000 Received: (at 3344) by emacsbugs.donarmstrong.com; 22 May 2009 02:16:31 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.4 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mo-p05-ob.rzone.de (mo-p05-ob.rzone.de [81.169.146.181]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4M2GQFw029989 for <3344@emacsbugs.donarmstrong.com>; Thu, 21 May 2009 19:16:28 -0700 X-RZG-AUTH: :Ln4Re0/tc/4+RPs3/JP8/Hc3Cqxuq9k84i0ZqlPB1QI5ca9K8r5piikymA== X-RZG-CLASS-ID: mo05 Received: from linuix.haible.de (dslb-088-068-043-109.pools.arcor-ip.net [88.68.43.109]) by post.strato.de (fruni mo31) (RZmta 18.34) with ESMTP id e063bfl4M0jcM3 ; Fri, 22 May 2009 04:16:23 +0200 (MEST) From: Bruno Haible To: Stefan Monnier Date: Fri, 22 May 2009 04:16:00 +0200 User-Agent: KMail/1.9.9 Cc: 3344@debbugs.gnu.org, johnw@gnu.org References: <200905212202.44024.bruno@clisp.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905220416.02265.bruno@clisp.org> Stefan Monnier wrote: > Can you try again with the Emacs-23 pretest to confirm that the bug > is fixed? Yes, I confirm. In emacs-23.0.91, after M-x eshell, - TERM is set to 'dumb' by default. This has the effect that programs won't try to use bold writing or colours. - If I set TERM=eterm, programs which use the ANSI escape sequences for bold writing and colours produce good output. However, programs which use the escape sequences from the terminfo database entry for 'eterm' (such as 'msgcat') produce suboptimal output (some escape sequences are apparently being ignored). Test case: $ wget http://translationproject.org/PO-files/de/gettext-runtime-0.17.de.po $ msgcat --color=always gettext-runtime-0.17.de.po Maybe 'eterm' is not the right value for TERM in M-x eshell? Bruno From cyd@stupidchicken.com Fri May 22 06:18:20 2009 Received: (at control) by emacsbugs.donarmstrong.com; 22 May 2009 13:18:21 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4MDIFkJ006004 for ; Fri, 22 May 2009 06:18:17 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 8706157E24D; Fri, 22 May 2009 09:18:35 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: merge 3344 3345 Date: Fri, 22 May 2009 09:18:35 -0400 Message-ID: <87hbzdp978.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii merge 3344 3345 reassign 3346 spam thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 07 01:25:07 2010 Received: (at control) by debbugs.gnu.org; 7 Feb 2010 06:25:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ne0Zv-0000Ng-E8 for submit@debbugs.gnu.org; Sun, 07 Feb 2010 01:25:07 -0500 Received: from pantheon-po34.its.yale.edu ([130.132.50.80]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ne0Zt-0000NL-T2 for control@debbugs.gnu.org; Sun, 07 Feb 2010 01:25:06 -0500 Received: from furry (bb116-15-9-83.singnet.com.sg [116.15.9.83]) (authenticated bits=0) by pantheon-po34.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o176P0Vm026521 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 7 Feb 2010 01:25:02 -0500 Received: by furry (Postfix, from userid 1000) id 76E49C05D; Sun, 7 Feb 2010 01:24:59 -0500 (EST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 3344 Date: Sun, 07 Feb 2010 01:24:59 -0500 Message-ID: <87zl3lv9z8.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) close 3344 thanks