From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#30134: ehsell and process-environment variable Date: Tue, 16 Jan 2018 13:03:14 -0500 Message-ID: References: <83shb6xyha.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1516126118 20319 195.159.176.226 (16 Jan 2018 18:08:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 Jan 2018 18:08:38 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: 30134@debbugs.gnu.org, SK Kim To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 16 19:08:34 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebVev-0004cw-9q for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jan 2018 19:08:29 +0100 Original-Received: from localhost ([::1]:52655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebVgv-00009E-5x for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jan 2018 13:10:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebVag-0003Yl-4G for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2018 13:04:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebVac-0002kb-Ep for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2018 13:04:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51120) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebVac-0002kU-Bs for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2018 13:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ebVac-0001if-4D for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2018 13:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Jan 2018 18:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30134 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30134-submit@debbugs.gnu.org id=B30134.15161258146576 (code B ref 30134); Tue, 16 Jan 2018 18:04:02 +0000 Original-Received: (at 30134) by debbugs.gnu.org; 16 Jan 2018 18:03:34 +0000 Original-Received: from localhost ([127.0.0.1]:59017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebVaA-0001i0-0j for submit@debbugs.gnu.org; Tue, 16 Jan 2018 13:03:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebVa7-0001hk-Ie for 30134@debbugs.gnu.org; Tue, 16 Jan 2018 13:03:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebVZy-0002P1-Rr for 30134@debbugs.gnu.org; Tue, 16 Jan 2018 13:03:26 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebVZs-0002LL-93; Tue, 16 Jan 2018 13:03:16 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ebVZr-0007v6-3H; Tue, 16 Jan 2018 13:03:15 -0500 X-Spook: Hugo Chavez Central Intelligence Agency nitrate Public X-Ran: 33p-5l*SoV?i#C7l$x#~~G(;(8KzW&q46>vh%$/Vg.$5&+mOp*=Gq\K|ij/64cRbalF.;! X-Hue: yellow X-Attribution: GM In-Reply-To: <83shb6xyha.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 16 Jan 2018 05:40:33 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142207 Archived-At: Eli Zaretskii wrote: >> 2) 'M-x eshell' to open eshell buffer. >> >> 3) evaluate below code in eshell buffer. >> (let ((process-environment (cons "TEST=1234" process-environment))) >> (make-term "test-term" "/bin/bash")) >> >> 4) moved to buffer 'test-term' and type 'echo $TEST' and you can see >> nothing. [...] > process-environment is for invoking other programs from Emacs. By > contrast, Eshell does not invoke any other program, it is implemented > in Emacs itself. And process-environment doesn't affect Emacs itself. > That is why you see the difference with other programs, in particular > shells invoked from Emacs. I don't think that's relevant to this report, where a bash shell is being invoked, it just happens to be launched from an eshell buffer. eshell seems to have some special handling for process-environment, which is (presumably) the cause of this difference from other buffers.