From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23779: 25.0.95; consing "SHELLVAR" onto process-environment doesn't remove it from subprocess env Date: Fri, 17 Jun 2016 23:10:37 +0300 Message-ID: <83mvmjbmpu.fsf@gnu.org> References: <837fdocmrl.fsf@gnu.org> <962d42ee-847c-507e-d457-2d6f9a38e955@yandex.ru> <83wplnc3t8.fsf@gnu.org> <83vb17c2z3.fsf@gnu.org> <91dddf53-b680-5568-cc9e-3f54859c8049@yandex.ru> <83twgrbv8r.fsf@gnu.org> <54d442d1-0053-6966-9cd6-9540448eb31f@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1466194227 7449 80.91.229.3 (17 Jun 2016 20:10:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2016 20:10:27 +0000 (UTC) Cc: npostavs@users.sourceforge.net, 23779@debbugs.gnu.org, schwab@linux-m68k.org, eggert@cs.ucla.edu To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 17 22:10:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bE05m-00079D-JO for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jun 2016 22:10:14 +0200 Original-Received: from localhost ([::1]:60143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bE05l-0001hE-Lh for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jun 2016 16:10:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bE05c-0001bd-Gx for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2016 16:10:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bE05a-0001VB-CS for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2016 16:10:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bE05a-0001V5-9C for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2016 16:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bE05a-0006Yg-5M for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2016 16:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Jun 2016 20:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23779 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23779-submit@debbugs.gnu.org id=B23779.146619419025188 (code B ref 23779); Fri, 17 Jun 2016 20:10:02 +0000 Original-Received: (at 23779) by debbugs.gnu.org; 17 Jun 2016 20:09:50 +0000 Original-Received: from localhost ([127.0.0.1]:44525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bE05K-0006Y5-8v for submit@debbugs.gnu.org; Fri, 17 Jun 2016 16:09:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34801) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bE05J-0006Xq-0D for 23779@debbugs.gnu.org; Fri, 17 Jun 2016 16:09:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bE059-0001PV-Vp for 23779@debbugs.gnu.org; Fri, 17 Jun 2016 16:09:39 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bE059-0001PR-Sh; Fri, 17 Jun 2016 16:09:35 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4652 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bE059-0005xA-0T; Fri, 17 Jun 2016 16:09:35 -0400 In-reply-to: <54d442d1-0053-6966-9cd6-9540448eb31f@yandex.ru> (message from Dmitry Gutov on Fri, 17 Jun 2016 22:01:19 +0300) 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:119691 Archived-At: > Cc: eggert@cs.ucla.edu, schwab@linux-m68k.org, > npostavs@users.sourceforge.net, 23779@debbugs.gnu.org > From: Dmitry Gutov > Date: Fri, 17 Jun 2016 22:01:19 +0300 > > On 06/17/2016 08:06 PM, Eli Zaretskii wrote: > > > Now that 'push' works, why do we need setenv for that? > > So that the user doesn't have to (push "VAR=value"), or (push "VAR="), > or know the difference between the latter and (push "VAR"). > > setenv is a better abstraction. In fact, if you use it, you don't even > have to know the format of process-environment. We will have to agree to disagree on this one. > >> So, what are the downsides? > > > > That there's no way of changing the environment permanently? > > The environment is changes as a result. It just doesn't modify the > original list, and, as such, contains duplicate values for the changed > variables. What do I do if I do want to change the original one? > > I'm not sure I see why that is nicer. > > Do you know what value "PAGER=" assigns to the variable PAGER? Not sure what that means, or why do you ask that.