From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 15 21:31:40 2018 Received: (at submit) by debbugs.gnu.org; 16 Jan 2018 02:31:40 +0000 Received: from localhost ([127.0.0.1]:57933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebH2K-00058G-8c for submit@debbugs.gnu.org; Mon, 15 Jan 2018 21:31:40 -0500 Received: from eggs.gnu.org ([208.118.235.92]:58901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebH2I-000582-8R for submit@debbugs.gnu.org; Mon, 15 Jan 2018 21:31:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebH2B-0001CR-VJ for submit@debbugs.gnu.org; Mon, 15 Jan 2018 21:31:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_40, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57587) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ebH2B-0001CM-Sa for submit@debbugs.gnu.org; Mon, 15 Jan 2018 21:31:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebH2A-0003yP-Kp for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2018 21:31:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebH29-0001BA-Ox for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2018 21:31:30 -0500 Received: from mail-pl0-x232.google.com ([2607:f8b0:400e:c01::232]:37702) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebH29-0001Ai-JZ for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2018 21:31:29 -0500 Received: by mail-pl0-x232.google.com with SMTP id s3so5024656plp.4 for ; Mon, 15 Jan 2018 18:31:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=haDAgnNmy2nqNlVYgPS8T3QxlrHW9njr8TKBqEfy4eY=; b=Bl8OI3pnyqaGXRpXsIzdxytTnzm/kA7L9uxS95pgDQNw9hgfY/1RyuOxiJOGCBfwqT SUlJkFSYwNv3/gKO11nqVDxvIAwpOyM6GP7d3k2KSOJPTNhLL2y4SQL+JKYlOIw6GL7N 1AU3MPidnKbZRpMokGaR+PjH1Yq8xMLrPxDgAWYgxT4zu1KW6QVchU1ni0K3jbQtzo55 t9OU2KJJ3efpvZlie891suYaB0gcXYkXJqm7R69BGum4b8dG34sckZBn09OGWrXMAcGt KV6qDmnEB5iWOWc6lRzXeuBkRpGfNfLppDWDcfNE8J20wvF5DBqXGeiyKSbZZZfGxrOQ D0PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=haDAgnNmy2nqNlVYgPS8T3QxlrHW9njr8TKBqEfy4eY=; b=EJBXYiReD9zKaHQXgIyV0uhFvrtX4j9OQUwGhW6AUbIEERXww7rJ02NsrNnOy6Onyy Zdh2RqbdlfJpUAIVhD7j2bkysUQUZ3GydoKLp51t57z9a4Z/M95BYQZyr4uimL8b9I/q FkSV1M0wM1UXsOxp/TZ4dHp1ba8jTyp1vdfVdIq5wgcdein5alb1l2rbQ7Lwg2/i9uFw OrDp8vtg6ciGuyt20dUVNsZbWv6dRSfpP2MH3XX74fsb8uuLo1HLe2FJMtEAZg70qIAx bi8waPGvDnaASTB2Z4ZkC4OtRjIjtjzmbxlSzJLAqhcyLqJVRWnBsrO2A1HUF4ccnjsp AwoQ== X-Gm-Message-State: AKwxytefyx8Uulzp4uJs7cD7fXJsuuKv5BOhrzpw9IDHTmFR+BYPj8mN kJWgARF0bSEXuckzoupTPrfKLUpuuGb9KjtLjc4mG7GL X-Google-Smtp-Source: ACJfBosiqAJA0A0djvKwncpewdtoDxtzBg3ax4PrpDS1XjDXf+qv0U8k2wLrrKBQgXy6MwhANWmUuIEkxB4QMB6s7ms= X-Received: by 10.159.252.198 with SMTP id o6mr7429586pls.4.1516069888172; Mon, 15 Jan 2018 18:31:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.156.5 with HTTP; Mon, 15 Jan 2018 18:31:27 -0800 (PST) From: SK Kim Date: Tue, 16 Jan 2018 11:31:27 +0900 Message-ID: Subject: ehsell and process-environment variable To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="94eb2c1f3a6823a8500562db87c6" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) --94eb2c1f3a6823a8500562db87c6 Content-Type: text/plain; charset="UTF-8" I found weird situation and looked into it by myself but I couldn't solve it. so I'm writing down this mail now. I wanted to make a new term with modifed process-environment but it did not work properly when I make a new term from eshell buffer. The situation can be reproduced as below. 1) start emacs with 'emacs -Q' 2) evaluate below code in any buffer. (let ((process-environment (cons "TEST=1234" process-environment))) (make-term "test-term" "/bin/bash")) 3) moved to buffer 'test-term' and type 'echo $TEST' and you can see the result '1234' Above is what I expected modified process-environment variable would work and it actually works as I expected. However there is a condition it doesn't work as I expected. 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. This is tested on GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2017-12-13 Possibly this might not be a bug and there is specific reason it works that way but I couldn't have found any information about this and couldn't have solved this by myself neither. So now I am sending this bug report. Thanks for everyone contributing to emacs. I appreciate it. Thanks. --94eb2c1f3a6823a8500562db87c6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I found weird situation and looked into it by myself = but I couldn't
solve it. so I'm writing down this mail no= w.

I wanted to make a new term with modifed proces= s-environment but it
did not work properly when I make a new term= from eshell buffer.=C2=A0 The
situation can be reproduced as bel= ow.

1) start emacs with 'emacs -Q'

2) evaluate below code in any buffer.
=C2=A0 = =C2=A0 (let ((process-environment (cons "TEST=3D1234" process-env= ironment)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (make-term "test-ter= m" "/bin/bash"))

3) moved to buffer= 'test-term' and type 'echo $TEST' and you can see
=C2=A0 =C2=A0the result '1234'

Above is = what I expected modified process-environment variable would
work = and it actually works as I expected. However there is a condition
it doesn't work as I expected.

1) start emacs= with 'emacs -Q'

2) 'M-x eshell' t= o open eshell buffer.

3) evaluate below code in es= hell buffer.
=C2=A0 =C2=A0 (let ((process-environment (cons "= ;TEST=3D1234" process-environment)))
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 (make-term "test-term" "/bin/bash"))
<= br>
4) moved to buffer 'test-term' and type 'echo $TE= ST' and you can see
=C2=A0 =C2=A0nothing.

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.=

This is tested on GNU Emacs 25.3.1 (x86_64-pc-lin= ux-gnu, X toolkit,
Xaw scroll bars) of 2017-12-13

<= /div>
Possibly this might not be a bug and there is specific reason it = works
that way but I couldn't have found any information abou= t this and
couldn't have solved this by myself neither. So no= w I am sending this
bug report.

Thanks f= or everyone contributing to emacs. I appreciate it.

Thanks.
--94eb2c1f3a6823a8500562db87c6-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 15 22:40:54 2018 Received: (at 30134) by debbugs.gnu.org; 16 Jan 2018 03:40:54 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Tue, 16 Jan 2018 05:40:33 +0200 Message-Id: <83shb6xyha.fsf@gnu.org> From: Eli Zaretskii To: SK Kim In-reply-to: (message from SK Kim on Tue, 16 Jan 2018 11:31:27 +0900) Subject: Re: bug#30134: ehsell and process-environment variable References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30134 Cc: 30134@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 16 12:04:31 2018 Received: (at 30134) by debbugs.gnu.org; 16 Jan 2018 17:04:31 +0000 Received: from localhost ([127.0.0.1]:58987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebUf1-0006nX-7J for submit@debbugs.gnu.org; Tue, 16 Jan 2018 12:04:31 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebUez-0006nJ-6v for 30134@debbugs.gnu.org; Tue, 16 Jan 2018 12:04:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebUeo-0003hO-HQ for 30134@debbugs.gnu.org; Tue, 16 Jan 2018 12:04:24 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebUeo-0003hK-Du; Tue, 16 Jan 2018 12:04:18 -0500 Received: from [176.228.60.248] (port=1402 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ebUen-000526-S0; Tue, 16 Jan 2018 12:04:18 -0500 Date: Tue, 16 Jan 2018 19:04:08 +0200 Message-Id: <83o9ltybuf.fsf@gnu.org> From: Eli Zaretskii To: SK Kim In-reply-to: (message from SK Kim on Tue, 16 Jan 2018 16:09:17 +0900) Subject: Re: bug#30134: ehsell and process-environment variable References: <83shb6xyha.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30134 Cc: 30134@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) [Please keep the bug address on the CC list.] > From: SK Kim > Date: Tue, 16 Jan 2018 16:09:17 +0900 > > So that means, this result is natural in Emacs and package authors > should also avoid such a code. Is this right? Yes, I think so. > Maybe if I want to guarantee the code is working properly in any > buffers of Emacs, I should wrap the code with 'with-temp-buffer' as below. > > (with-temp-buffer > (let ((process-environment (cons "TEST=1234" process-environment))) > (make-term "test-term" "/bin/bash"))) Maybe. I will take another look in a couple of days. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 16 13:03:34 2018 Received: (at 30134) by debbugs.gnu.org; 16 Jan 2018 18:03:34 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 From: Glenn Morris To: Eli Zaretskii Subject: Re: bug#30134: ehsell and process-environment variable References: <83shb6xyha.fsf@gnu.org> 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-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 16 Jan 2018 13:03:14 -0500 In-Reply-To: <83shb6xyha.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 16 Jan 2018 05:40:33 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30134 Cc: 30134@debbugs.gnu.org, SK Kim X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 18 12:45:53 2018 Received: (at 30134) by debbugs.gnu.org; 18 Jan 2018 17:45:53 +0000 Received: from localhost ([127.0.0.1]:33643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecEG8-000556-B6 for submit@debbugs.gnu.org; Thu, 18 Jan 2018 12:45:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecEG4-00054r-Un for 30134@debbugs.gnu.org; Thu, 18 Jan 2018 12:45:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecEFy-0001TR-AZ for 30134@debbugs.gnu.org; Thu, 18 Jan 2018 12:45:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE, T_DKIM_INVALID,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecEFy-0001TG-6H for 30134@debbugs.gnu.org; Thu, 18 Jan 2018 12:45:42 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ecEFx-0001Jn-S6 for 30134@debbugs.gnu.org; Thu, 18 Jan 2018 12:45:42 -0500 Resent-Message-ID: <23136.56645.413749.71430@gnu.org> Resent-Date: Thu, 18 Jan 2018 12:45:41 -0500 Resent-From: Glenn Morris Resent-To: 30134@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=RAdgqIxihjL43PdU9bMm9647RgJOZ2gvvkuGVVmy1E4=; b=bDS2za/2XzRUtrbNW53wWQkKmv2KWx48Ufv6yzdM7zgFw+GJqF+nOagUZi69H4kQdW rp8xiuJZ4yxWHKqEK/yYLQww1k8BhKxxMmsLHnXkzr0Zbf8xW0INfY7cPhoV7jiFJTcj Wu5Aa1YFphh6IsbZ7J5h1GOW1m4P/PG+LGIAzDfiaK0BOOtRYHA+Pl/pSTABtWyuFQjw 4qtQTY3ON7AiT4QlsIsPGqGcvjmevBDH6iiumIzbGzocrs1GU2MBplI+Y1T0Uadiahz0 tAG5Cu29Xf+Z1NRq1QKnNIFy5ttOjGEWSVavLDJhQVoE1XFWxSowdIUYyO+jRHfVSCtz nP2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=RAdgqIxihjL43PdU9bMm9647RgJOZ2gvvkuGVVmy1E4=; b=U5nbwlMMVUE2575lfs5Q6C0drAMG6HN20p24Ln7ez3mPECLVXgfymMT+aYhqIokdvs +DKg2ezxLZhaiLSgMJlLagC67IyO1fMZ3Ss6B5y/KiG+qJ++r+UTwDh6T4egje6TP4Tn elIZUVLDMI28RycMDV6D2f3BNt+QtVOHe37S7IhOfNwNLt+olBfeqyOAVLKWnjWe94Lb ddW0rEOsQytjFdXLmySXCKvEzQaOSu0gsDySvMBV7QT/QXFU220OXL0PVmujNkdcXgna EaDB8xGDrOTvtwEvT1JSbcUZv3CGvzOlKZcKH2Z/+gFFUsct5o61vvCgzZOqS/jM1SeA 5FpQ== X-Gm-Message-State: AKGB3mKQfOiG1fRsqxCWloCjsNC50yKPf/3LaUZW4psalfA4UiBuh3+b VbSPcxjWaSyGWVMnrrLClIbXd24Dy7QJjzeZkKuDidjm X-Google-Smtp-Source: ACJfBotqV4CJkSGVZYd+vWBVAuWIJoW8OY2cNChvOg+IWvR3Ex7rkUu5g4RN0URgpyAuiXclWVjWFnpB2HpgQw4rvTM= X-Received: by 10.159.247.7 with SMTP id d7mr45689403pls.224.1516255886506; Wed, 17 Jan 2018 22:11:26 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <83shb6xyha.fsf@gnu.org> Message-ID: Content-Type: multipart/alternative; boundary="089e082ee75880fe44056306d56e" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Date: Thu, 18 Jan 2018 15:11:26 +0900 From: SK Kim To: 30134@debbugs.gnu.org Subject: Re: bug#30134: ehsell and process-environment variable X-Bogosity: unsure, spamicity=0.140715, v1.2.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: 30134 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.8 (----) --089e082ee75880fe44056306d56e Content-Type: text/plain; charset="UTF-8" I have looked into eshell and make-term source and narrowed down the range of the issue somewhat. If I evaluate the test code from eshell buffer, process-environment lose "TEST=1234" inside make-term function as below. (defun make-term (name program &optional startfile &rest switches) (let ((buffer (get-buffer-create (concat "*" name "*")))) (cond ((not (term-check-proc buffer)) ;; Here, process-environemnt still have "TEST=1234" (with-current-buffer buffer ;; Here, process-environemnt lost "TEST=1234" (term-mode)) (term-exec buffer name program startfile switches))) buffer)) I still don't know why but process-environment lost some values when creating new buffer with 'get-buffer-create' function. You can test this as below: 1-1) emacs -Q 1-2) evaluate below code. (let ((process-environment (cons "TEST=1234" process-environment))) (get-buffer-create "test-buffer") (switch-to-buffer "test-buffer") (member "TEST=1234" process-environment)) 1-3) you can see "TEST=1234" is a member of process-environment in new buffer. 2-1) emacs -Q 2-2) M-x eshell 2-3) evaluate below code in eshell buffer. (let ((process-environment (cons "TEST=1234" process-environment))) (get-buffer-create "test-buffer") (switch-to-buffer "test-buffer") (member "TEST=1234" process-environment)) 2-4) you can see "TEST=1234" is lost from process-environment. You can also test this simply as below. 3-1) emacs -Q 3-2) M-x eshell 3-3) evaluate below code in eshell buffer. (let ((process-environment (cons "TEST=1234" process-environment))) (with-temp-buffer (member "TEST=1234" process-environment))) 3-4) you can see "TEST=1234" is lost from process-environment. --089e082ee75880fe44056306d56e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have looked into eshell and make-term source a= nd narrowed down the
range of the issue somewhat.

<= /div>
If I evaluate the test code from eshell buffer, process-environme= nt
lose "TEST=3D1234" inside make-term function as belo= w.

(defun make-term (name program &optional st= artfile &rest switches)
=C2=A0 (let ((buffer (get-buffer-crea= te (concat "*" name "*"))))
=C2=A0 =C2=A0 (co= nd ((not (term-check-proc buffer))
=C2=A0 =C2=A0 ;; Here, process= -environemnt still have "TEST=3D1234"
=C2=A0 =C2=A0(with-current-buffer buffer
= =C2=A0 =C2=A0 =C2=A0 =C2=A0;; Here, process-environemnt lost "TEST=3D1= 234"
=C2=A0 =C2=A0 = =C2=A0(term-mode))
=C2=A0= =C2=A0(term-exec buffer name program startfile switches)))
=C2= =A0 =C2=A0 buffer))

I still don't know why but= process-environment lost some values when
creating new buffer wi= th 'get-buffer-create' function.

You can t= est this as below:

1-1) emacs -Q
1-2) ev= aluate below code.
=C2=A0 =C2=A0 =C2=A0(let ((process-environment= (cons "TEST=3D1234" process-environment)))
=C2=A0 =C2= =A0 =C2=A0 =C2=A0(get-buffer-create "test-buffer")
=C2= =A0 =C2=A0 =C2=A0 =C2=A0(switch-to-buffer "test-buffer")
=C2=A0 =C2=A0 =C2=A0 =C2=A0(member "TEST=3D1234" process-enviro= nment))
1-3) you can see "TEST=3D1234" is a member of p= rocess-environment in new buffer.

2-1) emacs -Q
2-2) M-x eshell
2-3) evaluate below code in eshell buffer= .
=C2=A0 =C2=A0 =C2=A0(let ((process-environment (cons "TEST= =3D1234" process-environment)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0(= get-buffer-create "test-buffer")
=C2=A0 =C2=A0 =C2=A0 = =C2=A0(switch-to-buffer "test-buffer")
=C2=A0 =C2=A0 = =C2=A0 =C2=A0(member "TEST=3D1234" process-environment))
2-4) you can see "TEST=3D1234" is lost from process-environment= .


You can also test this simply as = below.=C2=A0

3-1) emacs -Q
3-2) M-x eshe= ll
3-3) evaluate below code in eshell buffer.
=C2=A0 = =C2=A0 =C2=A0(let ((process-environment (cons "TEST=3D1234" proce= ss-environment)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0(with-temp-buffer
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(member "TEST=3D1234" p= rocess-environment)))
3-4) you can see "TEST=3D1234" is= lost from process-environment.
--089e082ee75880fe44056306d56e-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 18 12:49:38 2018 Received: (at 30134) by debbugs.gnu.org; 18 Jan 2018 17:49:38 +0000 Received: from localhost ([127.0.0.1]:33647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecEJm-0005Ar-Ja for submit@debbugs.gnu.org; Thu, 18 Jan 2018 12:49:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33033) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecEJk-0005Ae-Br for 30134@debbugs.gnu.org; Thu, 18 Jan 2018 12:49:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecEJe-0004JU-Q5 for 30134@debbugs.gnu.org; Thu, 18 Jan 2018 12:49:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecEJd-0004HP-EH; Thu, 18 Jan 2018 12:49:29 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ecEJd-0001bO-1n; Thu, 18 Jan 2018 12:49:29 -0500 From: Glenn Morris To: SK Kim Subject: Re: bug#30134: ehsell and process-environment variable References: <83shb6xyha.fsf@gnu.org> X-Spook: John Kerry Drill FDA Pakistan TELINT Blowfish Metro X-Ran: +3?g%&'grA,[RAqcrhEhfRfxn!UgRNnjlkm;B)'k"f4By'%,@=^s^mgQ^oiE[!T(r@G~]M X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 18 Jan 2018 12:49:28 -0500 In-Reply-To: (SK Kim's message of "Thu, 18 Jan 2018 15:11:26 +0900") Message-ID: <6xk1wfkqfr.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30134 Cc: 30134@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) [Please reply-to-all] SK Kim wrote: > I still don't know why but process-environment lost some values when > creating new buffer with 'get-buffer-create' function. Eshell makes process-environment buffer-local. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 18 12:52:50 2018 Received: (at 30134) by debbugs.gnu.org; 18 Jan 2018 17:52:50 +0000 Received: from localhost ([127.0.0.1]:33651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecEMs-0005Ff-3j for submit@debbugs.gnu.org; Thu, 18 Jan 2018 12:52:50 -0500 Received: from mail-wr0-f171.google.com ([209.85.128.171]:43042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecEMo-0005FQ-Br for 30134@debbugs.gnu.org; Thu, 18 Jan 2018 12:52:48 -0500 Received: by mail-wr0-f171.google.com with SMTP id t16so9808028wrc.10 for <30134@debbugs.gnu.org>; Thu, 18 Jan 2018 09:52:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=dv6PN6If1WJbC9YTCWiCvWeQesWHrxv9IFsPPdo1AwM=; b=bSFAmTymdFLjgRC/oPMM3sQX110v8Ka5j5OmAcPCtkzxhJNL4Y06RpbnAtB/8y6ntU 4Wzkuv425B/iBOiP6W9ovuIMheC8iEiBawAZbYSeSM5668fml1jkzw2HXySLqWgA5BvX iq2Fnh+h2sDZwxrLnAP/nKGRr9Vdg/CScYRvmjW2EoLHe2OtMPh3FrwlcO9lTlD/f7GE Ux/f+kIuQKv5FGI48Amt+w9YXz0fiJ248IEcHvUaULEKU5giNRSsVOoBdTzg/cHkwx85 xVX004thg718EvSfSnpWeTzTTMRA3fOSjeNTrG8jvwH9JkRDCz7j+TN4K/PgvW6l3WUq bVMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=dv6PN6If1WJbC9YTCWiCvWeQesWHrxv9IFsPPdo1AwM=; b=oXtRUYmSPcdUrjcWCqtNL0ihmcXiTkZD7l1hJoIeFntmbiS3GLn9DCmoMKL/DHnmB5 kr8PY+yX6lF+K+jP9eNVoOsL1/+dqo6WSbGYtYnBJGWx9xpK3Ln+RO67z4Qu5SH0wNuj tI7uOBLp14MA2kXoNX5KQrqH5ZnkRDaNXOJbrFfFzW7EfSyXbL3WsY+vdHxgdB7161za ciYBfnY2ZoR9fLT50X8ZBzOPyZxy5shHf8E3rZ/r2Ek82bE5w6JNugjQx/ge8ViAxeo1 UxdDYNpUWa0pNaQfk8Ol0dilnY+YxpBszTHL5R6T8JURK5x6DC8/GEKxThuQSidIrFj3 /mcQ== X-Gm-Message-State: AKwxytc3F+myOPNci4YSUiTPfgxEaOeWRb1Xh3GoUoXHEea/gbcUC/87 EQWKVofFO3JtwBGogFinDCCAaxUeS5yq8pX7cfM= X-Google-Smtp-Source: ACJfBosWCc6QO1nRvO+fJXFFjp5+jnBmXFB2C26ud3HJYqzZIwOKPbmcI8l/2DItB7LJt+Fn4Glmwze4H79TPhf6Yjg= X-Received: by 10.223.152.103 with SMTP id v94mr7193616wrb.233.1516297960500; Thu, 18 Jan 2018 09:52:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.142.53 with HTTP; Thu, 18 Jan 2018 09:52:40 -0800 (PST) In-Reply-To: References: <83shb6xyha.fsf@gnu.org> From: Noam Postavsky Date: Thu, 18 Jan 2018 12:52:40 -0500 X-Google-Sender-Auth: vpjJsAjMmWonNY1LeEPrULChe3s Message-ID: Subject: Re: bug#30134: ehsell and process-environment variable To: SK Kim Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 30134 Cc: 30134@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) On Thu, Jan 18, 2018 at 1:11 AM, SK Kim wrote: > I still don't know why but process-environment lost some values when > creating new buffer with 'get-buffer-create' function. Probably because it's made into a buffer-local variable in eshell buffers: (defun eshell-var-initialize () "Initialize the variable handle code." ;; Break the association with our parent's environment. Otherwise, ;; changing a variable will affect all of Emacs. (unless eshell-modify-global-environment (set (make-local-variable 'process-environment) (eshell-copy-environment))) [...] From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 18 12:54:42 2018 Received: (at 30134) by debbugs.gnu.org; 18 Jan 2018 17:54:43 +0000 Received: from localhost ([127.0.0.1]:33655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecEOf-0005IU-3K for submit@debbugs.gnu.org; Thu, 18 Jan 2018 12:54:42 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecEOZ-0005IE-O2 for 30134@debbugs.gnu.org; Thu, 18 Jan 2018 12:54:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecEOT-0008Sv-TB for 30134@debbugs.gnu.org; Thu, 18 Jan 2018 12:54:30 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecEOS-0008SJ-L3; Thu, 18 Jan 2018 12:54:28 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ecEOS-0001us-93; Thu, 18 Jan 2018 12:54:28 -0500 From: Glenn Morris To: SK Kim Subject: Re: bug#30134: ehsell and process-environment variable References: <83shb6xyha.fsf@gnu.org> <6xk1wfkqfr.fsf@fencepost.gnu.org> X-Spook: George W. Bush Watergate Ansar al-Islam CDC Yemen X-Ran: rH&%Uk+SaZ[D>OPy^3)bf_}%>;%z^zPFMBpW(lMAIuTMuB2}T7Arha4])QsA2\'Q7/C8 (Glenn Morris's message of "Thu, 18 Jan 2018 12:49:28 -0500") Message-ID: <8ifu73kq7f.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30134 Cc: 30134@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Glenn Morris wrote: > Eshell makes process-environment buffer-local. If you repeat your experiment with emacs -Q --eval '(setq eshell-modify-global-environment t)' -f eshell it works as you wanted. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 18 12:54:50 2018 Received: (at control) by debbugs.gnu.org; 18 Jan 2018 17:54:50 +0000 Received: from localhost ([127.0.0.1]:33658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecEOn-0005Is-VT for submit@debbugs.gnu.org; Thu, 18 Jan 2018 12:54:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35123) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecEOm-0005Id-6B for control@debbugs.gnu.org; Thu, 18 Jan 2018 12:54:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecEOg-00006q-Ie for control@debbugs.gnu.org; Thu, 18 Jan 2018 12:54:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecEOg-00006i-Fg for control@debbugs.gnu.org; Thu, 18 Jan 2018 12:54:42 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ecEOg-0001xx-6Z for control@debbugs.gnu.org; Thu, 18 Jan 2018 12:54:42 -0500 Subject: control message for bug 30134 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Thu, 18 Jan 2018 12:54:42 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) tag 30134 notabug close 30134 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 18 20:34:02 2018 Received: (at 30134) by debbugs.gnu.org; 19 Jan 2018 01:34:02 +0000 Received: from localhost ([127.0.0.1]:33888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecLZB-0002Ha-Sp for submit@debbugs.gnu.org; Thu, 18 Jan 2018 20:34:02 -0500 Received: from mail-pf0-f169.google.com ([209.85.192.169]:39331) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecLZA-0002HG-Ml for 30134@debbugs.gnu.org; Thu, 18 Jan 2018 20:34:01 -0500 Received: by mail-pf0-f169.google.com with SMTP id e11so158517pff.6 for <30134@debbugs.gnu.org>; Thu, 18 Jan 2018 17:34:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Hsm/lpQBjK+Lz/3RbxascVJey5kRX/bfh3FwcLYKXjo=; b=HUfI4t9OOA+1UZHWqZatoEfgjuxFz+IkZO/Av3o52MnB+45kiMi3iaEJvXkER5SVj6 I2Y6toA4ry9sXwInNqjZzD8uwygPltcxOrrEJK8g1Oy0oYIg6f7PkXL9E36qSmX5/g7S Vi8jneVnZh6Tnz0JPxVUW9H+DiCYF5o3Zqlrb64a1CX/x5zbvBD/gg+S28ClMkgmi7FF dPIIruvpJ8HkcKp52pl807rZDrRqjWR1z0ElcyxWVi21fvIvRNRpZKZMnyiBtyEYq/mH xlEOWofk2ipIbFtnNC142wmsQvcnPvtqB72y9kYwkZzBa20Z0QEn4ahz69L4L+rFazeR PO6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Hsm/lpQBjK+Lz/3RbxascVJey5kRX/bfh3FwcLYKXjo=; b=Mr3drrFidDhB5FW8ChOPnrLWs4+teQfVBpBPPqPWVcYRWxYdAxCPGtT/tv0QfJHMkh PVNS1bZ2tk0BjQdYyFAXj1Ot0Xrou3GQDIVaTiNuOYm05Ys56rPmZwpyUnqhOle8k6Uf OdqgDOfD16Jtpf3sgwmDpM7Ww49GLKzdY3vnzFLBpcNmG5Ask+ms9FDkk7nwr3h9s/m+ SKTcXoLiv7oJ4Na7+A58kT9wyWldYXh+lYFVVroelto3d4qkzSJ6wlYoxt+XHsm75LXA J/XA6BK3+/aSAHj6J7sem8gwrp1LTwW6HW8jOsfRDBkHzwPVm7E0iMeBcfTTiSKQuQ8V NckQ== X-Gm-Message-State: AKwxytfdHzV6C7ZM2H5jKNENvoj2SJwwFJjXZ17930tKEEm5F7IZ6V8Y 5T4E7m8MrNv2/IZTgZR6b2ITxYrLYnKuVYihw8g= X-Google-Smtp-Source: ACJfBot9Og87lyfrD9e+YwMEnuyG19XcrZDDptO4huITiWKaKQyTgkDMK/9SY3nkXPHm14uPgkoAPlql63YMKErDoDY= X-Received: by 10.101.69.199 with SMTP id m7mr6276673pgr.444.1516325634609; Thu, 18 Jan 2018 17:33:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.156.5 with HTTP; Thu, 18 Jan 2018 17:33:54 -0800 (PST) Received: by 10.236.156.5 with HTTP; Thu, 18 Jan 2018 17:33:54 -0800 (PST) In-Reply-To: <8ifu73kq7f.fsf@fencepost.gnu.org> References: <83shb6xyha.fsf@gnu.org> <6xk1wfkqfr.fsf@fencepost.gnu.org> <8ifu73kq7f.fsf@fencepost.gnu.org> From: SK Kim Date: Fri, 19 Jan 2018 10:33:54 +0900 Message-ID: Subject: Re: bug#30134: ehsell and process-environment variable To: Glenn Morris Content-Type: multipart/alternative; boundary="089e08221efcd0955b05631712bd" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 30134 Cc: 30134@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) --089e08221efcd0955b05631712bd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you for kind reply. I appreciate it. 2018. 1. 19. =EC=98=A4=EC=A0=84 2:54=EC=97=90 "Glenn Morris" = =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > Glenn Morris wrote: > > > Eshell makes process-environment buffer-local. > > If you repeat your experiment with > > emacs -Q --eval '(setq eshell-modify-global-environment t)' -f eshell > > it works as you wanted. > --089e08221efcd0955b05631712bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you for kind reply. I appreciate it.

2018. 1. 19. =EC=98=A4=EC= =A0=84 2:54=EC=97=90 "Glenn Morris" <rgm@gnu.org>=EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1:
Glenn Morris wrote:

> Eshell makes process-environment buffer-local.

If you repeat your experiment with

emacs -Q --eval '(setq eshell-modify-global-environment t)' -f= eshell

it works as you wanted.
--089e08221efcd0955b05631712bd-- From unknown Wed Aug 20 06:39:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 16 Feb 2018 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator