From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: exec-path and PATH Date: Sat, 19 Mar 2011 19:26:20 +0200 Message-ID: <83tyez9g3n.fsf@gnu.org> References: <86ipvfiyp0.fsf@gmail.com> <83vczfr0o0.fsf@gnu.org> <86ei63hxsz.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1300555593 8673 80.91.229.12 (19 Mar 2011 17:26:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2011 17:26:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Christoph Scholtes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 19 18:26:29 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q0zv2-00089Q-PI for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2011 18:26:28 +0100 Original-Received: from localhost ([127.0.0.1]:54728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0zv2-0003ak-6H for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2011 13:26:28 -0400 Original-Received: from [140.186.70.92] (port=37315 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0zut-0003Xj-OQ for emacs-devel@gnu.org; Sat, 19 Mar 2011 13:26:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0zus-0003Wm-Cf for emacs-devel@gnu.org; Sat, 19 Mar 2011 13:26:19 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:51455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0zus-0003WB-3X for emacs-devel@gnu.org; Sat, 19 Mar 2011 13:26:18 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LIB00C00EX5LZ00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sat, 19 Mar 2011 19:26:16 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.131.120]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LIB00CRWF3QDR70@a-mtaout21.012.net.il>; Sat, 19 Mar 2011 19:26:16 +0200 (IST) In-reply-to: <86ei63hxsz.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137427 Archived-At: > From: Christoph Scholtes > Cc: emacs-devel@gnu.org > Date: Sat, 19 Mar 2011 10:36:44 -0600 > > Can we set PATH to exec-path for the duration of the shell > execution? What do you mean by "shell execution"? What I had in mind was that we should synchronize PATH with exec-path each time we invoke a subsidiary process, either through call-process or start-process. There could be an issue with async subprocesses that are already running, though: they still use the old PATH, while Emacs will see the new value. This could lead to subtle bugs. > IIRC, if you change the PATH in a cmd session it only applies to > that session. But we don't change PATH _in_ the cmd session, we change it _before_ the session begins.