From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30134: ehsell and process-environment variable Date: Tue, 16 Jan 2018 05:40:33 +0200 Message-ID: <83shb6xyha.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1516074782 23030 195.159.176.226 (16 Jan 2018 03:53:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 Jan 2018 03:53:02 +0000 (UTC) Cc: 30134@debbugs.gnu.org To: SK Kim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 16 04:52:57 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 1ebIIw-0005ST-J1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jan 2018 04:52:54 +0100 Original-Received: from localhost ([::1]:59598 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebIKw-0005Kn-8F for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jan 2018 22:54:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebI7V-0002Cs-KE for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2018 22:41:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebI7S-0005Xd-Hu for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2018 22:41:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50062) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebI7S-0005XX-Ec for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2018 22:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ebI7S-0006i1-6y for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2018 22:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Jan 2018 03:41: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.151607405425770 (code B ref 30134); Tue, 16 Jan 2018 03:41:02 +0000 Original-Received: (at 30134) by debbugs.gnu.org; 16 Jan 2018 03:40:54 +0000 Original-Received: from localhost ([127.0.0.1]:57959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebI7K-0006hZ-B5 for submit@debbugs.gnu.org; Mon, 15 Jan 2018 22:40:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebI7J-0006hN-16 for 30134@debbugs.gnu.org; Mon, 15 Jan 2018 22:40:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebI7A-0005Rh-MJ for 30134@debbugs.gnu.org; Mon, 15 Jan 2018 22:40:47 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebI7A-0005Rd-I8; Mon, 15 Jan 2018 22:40:44 -0500 Original-Received: from [176.228.60.248] (port=4960 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ebI7A-0002xF-0L; Mon, 15 Jan 2018 22:40:44 -0500 In-reply-to: (message from SK Kim on Tue, 16 Jan 2018 11:31:27 +0900) 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:142196 Archived-At: > From: SK Kim > Date: Tue, 16 Jan 2018 11:31:27 +0900 > > 1) start emacs with 'emacs -Q' > > 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. > > The modified process-environment variable is not properly affected if > the code is evaluated in eshell buffer. The eshell buffer is the only > buffer that I found the above code is not working properly. 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.