From unknown Mon Aug 18 09:09:51 2025 X-Loop: don@donarmstrong.com Subject: bug#1541: 23.0.60; Emacs don't see $PATH Reply-To: Dmitry Galinsky , 1541@debbugs.gnu.org Resent-From: Dmitry Galinsky Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 11 Dec 2008 23:05:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1541 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122903613923448 (code B ref -1); Thu, 11 Dec 2008 23:05:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.0000 Tokens: new, 103; hammy, 151; neutral, 129; spammy, 0. spammytokens: hammytokens:0.000-+--emacs, 0.000-+--23.0.60, 0.000-+--23060, 0.000-+--Emacs, 0.000-+--UD:el X-Spam-Status: No, score=-1.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED,STOCKLIKE,SUBJMONEY,WWWRU autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 11 Dec 2008 22:55:39 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBMtafT023441 for ; Thu, 11 Dec 2008 14:55:37 -0800 Received: from mx10.gnu.org ([199.232.76.166]:47004) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LAuQr-0002kI-T1 for emacs-pretest-bug@gnu.org; Thu, 11 Dec 2008 17:54:57 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LAuRS-0006v2-BU for emacs-pretest-bug@gnu.org; Thu, 11 Dec 2008 17:55:35 -0500 Received: from fg-out-1718.google.com ([72.14.220.154]:44032) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LAuRR-0006uI-MV for emacs-pretest-bug@gnu.org; Thu, 11 Dec 2008 17:55:34 -0500 Received: by fg-out-1718.google.com with SMTP id l26so662235fgb.30 for ; Thu, 11 Dec 2008 14:55:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=V33yombTWIcYvoShN532+So38/cPK7snzVYeWUfeAbU=; b=dFhFZhTG7+12pZIICbhCoLyXj1doOUUiiMEwdHRCOcnDKoM/QyrjEQHxNLJvtA5k66 tpvfd+jz9M1Z1XBRok51hAuoci8nVZMokmoj0Ey1Q61sSOa0Ux05dSLlWKFvfdF1RhI1 AtqTf9jwA5eGidZUivJIwn8RVKhWPWMzGaNsQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=no9I6u05fdd5Ldo21S13AdkbrVqzTkh6Xdew/tg9RKddY+aAhrdgnac3fYCvY3kcr+ HgtxBCTvuvno1v6tVGZk+OR6O/K/5b7wfBhayXkJUa8NTeFCrHr4ZdXpgboENOz9oS5P Eloe8yWvEERjNp7wWUY7bR4PqOQpjijPaijBk= Received: by 10.103.131.18 with SMTP id i18mr1605644mun.120.1229036128699; Thu, 11 Dec 2008 14:55:28 -0800 (PST) Received: from ?10.21.32.19? ([213.87.80.144]) by mx.google.com with ESMTPS id t10sm1564322muh.31.2008.12.11.14.55.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Dec 2008 14:55:28 -0800 (PST) Message-Id: <3EF395A3-9A7A-42E7-B084-C65474AF2DE6@gmail.com> From: Dmitry Galinsky To: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Fri, 12 Dec 2008 01:54:51 +0300 X-Mailer: Apple Mail (2.929.2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Emacs don't see $PATH environment variable. Step to reproduce bug: (setenv "PATH" (concat "/opt/local/bin:" (getenv "PATH"))) (getenv "PATH") ;; => "/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" (shell-command-to-string "which git") ;; > /opt/local/bin/git (git-status) ;; produced the error backtrace: Debugger entered--Lisp error: (file-error "Searching for program" "No such file or directory" "git") call-process("git" nil t nil "rev-parse" "--show-cdup") In GNU Emacs 23.0.60.1 (i386-apple-darwin9.5.0, NS apple-appkit-949.35) of 2008-12-10 on neutron.local Windowing system distributor `Apple', version 97.112.112.108.101.45.97.112.112.107.105.116.45.57.52.57.46.51.53 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ru_RU.UTF8 value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t yas/minor-mode: t recentf-mode: t show-paren-mode: t global-auto-revert-mode: t delete-selection-mode: t pc-selection-mode: t tooltip-mode: t ns-extended-platform-support-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t hs-minor-mode: t Recent input: Recent messages: Mark set Entering debugger... git version 1.6.0.5 Mark set Wrote /Users/dima/.emacs.d/rails-reloaded/rails-resources.el Making completion list... line-move-visual: End of buffer Open /Users/dima/.emacs.d/rails-reloaded/rails-resources.el Quit [2 times] Open /Users/dima/.emacs.d/rails-reloaded/rails-resources.el -- Best regards, Dmitry Galinsky http://dima-exe.ru From unknown Mon Aug 18 09:09:51 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Dmitry Galinsky Subject: bug#1541 closed by Glenn Morris (Re: bug#1541: 23.0.60; Emacs don't see $PATH) Message-ID: References: <3EF395A3-9A7A-42E7-B084-C65474AF2DE6@gmail.com> X-Emacs-PR-Message: they-closed 1541 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: notabug Reply-To: 1541@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1229067605-7477-1" This is a multi-part message in MIME format... ------------=_1229067605-7477-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #1541: 23.0.60; Emacs don't see $PATH It has been closed by Glenn Morris . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Glenn Morris by replying to this email. --=20 1541: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1541 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1229067605-7477-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From rgm@gnu.org Thu Dec 11 23:34:21 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.0000 Tokens: new, 43; hammy, 70; neutral, 51; spammy, 0. spammytokens: hammytokens:0.000-+--emacs, 0.000-+--23060, 0.000-+--23.0.60, 0.000-+--Emacs, 0.000-+--H*M:fsf X-Spam-Status: No, score=-10.3 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,RCVD_IN_DNSWL_MED,STOCKLIKE,SUBJMONEY,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1541-done) by emacsbugs.donarmstrong.com; 12 Dec 2008 07:34:21 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBC7YIks006070 for <1541-done@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 23:34:20 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LB2Wo-0006Ck-Jg; Fri, 12 Dec 2008 02:33:38 -0500 From: Glenn Morris To: 1541-done@debbugs.gnu.org Subject: Re: bug#1541: 23.0.60; Emacs don't see $PATH References: <3EF395A3-9A7A-42E7-B084-C65474AF2DE6@gmail.com> X-Spook: M-14 BCCI Roswell Vickie Weaver Becker Albania Semtex X-Ran: t/yp#3pD@h2~?`><(fT85wQ~aTx5lOo?6x\B[wU}`+(p6~-|D.(riocWB}#>1>]`3#>}aH X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 12 Dec 2008 02:33:38 -0500 In-Reply-To: <3EF395A3-9A7A-42E7-B084-C65474AF2DE6@gmail.com> (Dmitry Galinsky's message of "Fri, 12 Dec 2008 01:54:51 +0300") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Dmitry Galinsky wrote: > (setenv "PATH" (concat "/opt/local/bin:" (getenv "PATH"))) > (shell-command-to-string "which git") ;; > /opt/local/bin/git > "No such file or directory" "git") > call-process("git" nil t nil "rev-parse" "--show-cdup") It doesn't work like that. call-process uses the Lisp variable exec-path, which is set at startup based on the value of $PATH. So you should be adding /opt/local/bin to exec-path, or to PATH before you start Emacs. Changing PATH after Emacs has started will not affect call-process and similar things. (There may be a separate issue with --with-ns and environment, bug#1333.) ------------=_1229067605-7477-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From dima.exe@gmail.com Thu Dec 11 14:55:39 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.0000 Tokens: new, 103; hammy, 151; neutral, 129; spammy, 0. spammytokens: hammytokens:0.000-+--emacs, 0.000-+--23.0.60, 0.000-+--23060, 0.000-+--Emacs, 0.000-+--UD:el X-Spam-Status: No, score=-1.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED,STOCKLIKE,SUBJMONEY,WWWRU autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 11 Dec 2008 22:55:39 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBMtafT023441 for ; Thu, 11 Dec 2008 14:55:37 -0800 Received: from mx10.gnu.org ([199.232.76.166]:47004) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LAuQr-0002kI-T1 for emacs-pretest-bug@gnu.org; Thu, 11 Dec 2008 17:54:57 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LAuRS-0006v2-BU for emacs-pretest-bug@gnu.org; Thu, 11 Dec 2008 17:55:35 -0500 Received: from fg-out-1718.google.com ([72.14.220.154]:44032) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LAuRR-0006uI-MV for emacs-pretest-bug@gnu.org; Thu, 11 Dec 2008 17:55:34 -0500 Received: by fg-out-1718.google.com with SMTP id l26so662235fgb.30 for ; Thu, 11 Dec 2008 14:55:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=V33yombTWIcYvoShN532+So38/cPK7snzVYeWUfeAbU=; b=dFhFZhTG7+12pZIICbhCoLyXj1doOUUiiMEwdHRCOcnDKoM/QyrjEQHxNLJvtA5k66 tpvfd+jz9M1Z1XBRok51hAuoci8nVZMokmoj0Ey1Q61sSOa0Ux05dSLlWKFvfdF1RhI1 AtqTf9jwA5eGidZUivJIwn8RVKhWPWMzGaNsQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=no9I6u05fdd5Ldo21S13AdkbrVqzTkh6Xdew/tg9RKddY+aAhrdgnac3fYCvY3kcr+ HgtxBCTvuvno1v6tVGZk+OR6O/K/5b7wfBhayXkJUa8NTeFCrHr4ZdXpgboENOz9oS5P Eloe8yWvEERjNp7wWUY7bR4PqOQpjijPaijBk= Received: by 10.103.131.18 with SMTP id i18mr1605644mun.120.1229036128699; Thu, 11 Dec 2008 14:55:28 -0800 (PST) Received: from ?10.21.32.19? ([213.87.80.144]) by mx.google.com with ESMTPS id t10sm1564322muh.31.2008.12.11.14.55.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Dec 2008 14:55:28 -0800 (PST) Message-Id: <3EF395A3-9A7A-42E7-B084-C65474AF2DE6@gmail.com> From: Dmitry Galinsky To: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: 23.0.60; Emacs don't see $PATH Date: Fri, 12 Dec 2008 01:54:51 +0300 X-Mailer: Apple Mail (2.929.2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Emacs don't see $PATH environment variable. Step to reproduce bug: (setenv "PATH" (concat "/opt/local/bin:" (getenv "PATH"))) (getenv "PATH") ;; => "/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" (shell-command-to-string "which git") ;; > /opt/local/bin/git (git-status) ;; produced the error backtrace: Debugger entered--Lisp error: (file-error "Searching for program" "No such file or directory" "git") call-process("git" nil t nil "rev-parse" "--show-cdup") In GNU Emacs 23.0.60.1 (i386-apple-darwin9.5.0, NS apple-appkit-949.35) of 2008-12-10 on neutron.local Windowing system distributor `Apple', version 97.112.112.108.101.45.97.112.112.107.105.116.45.57.52.57.46.51.53 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ru_RU.UTF8 value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t yas/minor-mode: t recentf-mode: t show-paren-mode: t global-auto-revert-mode: t delete-selection-mode: t pc-selection-mode: t tooltip-mode: t ns-extended-platform-support-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t hs-minor-mode: t Recent input: Recent messages: Mark set Entering debugger... git version 1.6.0.5 Mark set Wrote /Users/dima/.emacs.d/rails-reloaded/rails-resources.el Making completion list... line-move-visual: End of buffer Open /Users/dima/.emacs.d/rails-reloaded/rails-resources.el Quit [2 times] Open /Users/dima/.emacs.d/rails-reloaded/rails-resources.el -- Best regards, Dmitry Galinsky http://dima-exe.ru ------------=_1229067605-7477-1-- From unknown Mon Aug 18 09:09:51 2025 X-Loop: don@donarmstrong.com Subject: bug#1541: 23.0.60; Emacs don't see $PATH Reply-To: Eli Zaretskii , 1541@debbugs.gnu.org Resent-From: Eli Zaretskii Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 12 Dec 2008 12:25:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1541 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: notabug Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122908417919062 (code B ref -1); Fri, 12 Dec 2008 12:25:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.0000 Tokens: new, 48; hammy, 71; neutral, 75; spammy, 1. spammytokens:0.987-1--0300 hammytokens:0.000-+--emacs, 0.000-+--23.0.60, 0.000-+--23060, 0.000-+--Emacs, 0.000-+--nil X-Spam-Status: No, score=-5.9 required=4.0 tests=BAYES_00,FOURLA,GMAIL, HAS_BUG_NUMBER,RCVD_IN_DNSWL_MED,STOCKLIKE,SUBJMONEY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 12 Dec 2008 12:16:19 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBCCGGAH019056 for ; Fri, 12 Dec 2008 04:16:17 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LB6wJ-00024G-BZ for bug-gnu-emacs@gnu.org; Fri, 12 Dec 2008 07:16:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LB6wF-00023f-Pw for bug-gnu-emacs@gnu.org; Fri, 12 Dec 2008 07:16:11 -0500 Received: from [199.232.76.173] (port=60435 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LB6wE-00023S-Iu for bug-gnu-emacs@gnu.org; Fri, 12 Dec 2008 07:16:10 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:59127) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LB6wE-0007Qe-DQ for bug-gnu-emacs@gnu.org; Fri, 12 Dec 2008 07:16:10 -0500 Received: from eliz by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LB6vb-0006bV-M3; Fri, 12 Dec 2008 07:15:31 -0500 From: Eli Zaretskii To: Dmitry Galinsky , 1541@debbugs.gnu.org CC: emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org In-reply-to: <3EF395A3-9A7A-42E7-B084-C65474AF2DE6@gmail.com> (message from Dmitry Galinsky on Fri, 12 Dec 2008 01:54:51 +0300) References: <3EF395A3-9A7A-42E7-B084-C65474AF2DE6@gmail.com> Message-Id: Date: Fri, 12 Dec 2008 07:15:31 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) > From: Dmitry Galinsky > Date: Fri, 12 Dec 2008 01:54:51 +0300 > Cc: > Reply-To: Dmitry Galinsky , 1541@emacsbugs.donarmstrong.com > > Emacs don't see $PATH environment variable. > > Step to reproduce bug: > > (setenv "PATH" (concat "/opt/local/bin:" (getenv "PATH"))) > (getenv "PATH") ;; => "/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" > (shell-command-to-string "which git") ;; > /opt/local/bin/git > (git-status) ;; produced the error > > backtrace: > Debugger entered--Lisp error: (file-error "Searching for program" > "No such file or directory" "git") > call-process("git" nil t nil "rev-parse" "--show-cdup") This is not a bug: setenv changes the value of PATH passed to the child processes, but not the value Emacs itself uses to search for executable programs. In your case, had Emacs found and invoked `git', it would have passed `git' the value of PATH that included "/opt/local/bin".