From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov 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 22:01:19 +0300 Message-ID: <54d442d1-0053-6966-9cd6-9540448eb31f@yandex.ru> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1466190170 10711 80.91.229.3 (17 Jun 2016 19:02:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2016 19:02:50 +0000 (UTC) Cc: npostavs@users.sourceforge.net, 23779@debbugs.gnu.org, schwab@linux-m68k.org, eggert@cs.ucla.edu To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 17 21:02:39 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 1bDz1x-0001gG-QQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jun 2016 21:02:13 +0200 Original-Received: from localhost ([::1]:59882 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDz1w-0006Ci-Mv for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jun 2016 15:02:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDz1q-0006BY-CR for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2016 15:02:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDz1m-0003VL-8f for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2016 15:02:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDz1m-0003VH-62 for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2016 15:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bDz1l-0004vz-Pu for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2016 15:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Jun 2016 19:02:01 +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.146619008918928 (code B ref 23779); Fri, 17 Jun 2016 19:02:01 +0000 Original-Received: (at 23779) by debbugs.gnu.org; 17 Jun 2016 19:01:29 +0000 Original-Received: from localhost ([127.0.0.1]:44508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDz1F-0004vE-9M for submit@debbugs.gnu.org; Fri, 17 Jun 2016 15:01:29 -0400 Original-Received: from mail-wm0-f53.google.com ([74.125.82.53]:35550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDz1D-0004uz-IF for 23779@debbugs.gnu.org; Fri, 17 Jun 2016 15:01:27 -0400 Original-Received: by mail-wm0-f53.google.com with SMTP id v199so562083wmv.0 for <23779@debbugs.gnu.org>; Fri, 17 Jun 2016 12:01:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=nGFcL7bjvP4xjwgsma8/15dhXK4PuRbi4n/Im4tj2WY=; b=udGNYdPMsKhOKkEbhm5Y2MsyFPdKEu7aBzRTIPQalhlVJpmtSceP/DoYWjSLdq6uK8 E+hXc+5HxpyL8OZm3FIZm/K7RmWst/UnQYmTO6ASXwdnmrmEnfVBvQwvCkcH1+uMqQIE abmi1ICJwnRHVDaEzbPqV/Mvt/QkQ01CGzI2SBt3h1e18RcjVa7Uu8/TyH8I+RbuAY7g kEuhGVM/cBZ9EAH/I7S4RJVSUV0u1l8f4jd4xnosaBd1lXqcHZqdrMDfmHzEslA/hfHK uiQNtEEcih89lhnY2C/ftyQsxHFDELDyLcNVqYoL6HEhW8a3Pn4GOYyKB9zjeJelKN85 SChg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=nGFcL7bjvP4xjwgsma8/15dhXK4PuRbi4n/Im4tj2WY=; b=QA5cyB5IFPNAKBfrXw0a6mHF7stt4n3o4Wy8UAbCHsNDoPbuvnVVnoDy2cNin+iEQX rjHcp8srtOY1XLSsiDRhGnDyFf9FK12lCzSh1So6Jg/8Ba5Bdcb1kJz7OB+OHek7TQcK WAUj9UF7gn4J/ONeAeE2GA6XXgDynvxAJtVhQyPNtf0ABgrljrarpqXtJOctnpK5q8Lp u4gwlSeBtRZxuE+kncHI952XPqK5aRRPfumUzxwztoxnXhishOeBHL6mjfmSkgw3uz+Q DacSYpJZEVmEcHrxdqHilbMPx+yj626AX9EZ7zaR2Ah1ndXmSItjkdLhAXbkUFMkUU9y asrQ== X-Gm-Message-State: ALyK8tKQOLst7X9Hw3GDC5SzyJVWHO4sqizW42WASQN5OCqWEeStmuk4We8tSNMb430Iww== X-Received: by 10.28.21.140 with SMTP id 134mr70116wmv.50.1466190081839; Fri, 17 Jun 2016 12:01:21 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.173.135]) by smtp.googlemail.com with ESMTPSA id b77sm164990wme.0.2016.06.17.12.01.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jun 2016 12:01:20 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 In-Reply-To: <83twgrbv8r.fsf@gnu.org> 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:119688 Archived-At: 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. >> 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. > I'm not sure I see why that is nicer. Do you know what value "PAGER=" assigns to the variable PAGER?