all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Galinsky <dima.exe@gmail.com>, 1541@emacsbugs.donarmstrong.com
Cc: emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org
Subject: bug#1541: 23.0.60; Emacs don't see $PATH
Date: Fri, 12 Dec 2008 07:15:31 -0500	[thread overview]
Message-ID: <E1LB6vb-0006bV-M3@fencepost.gnu.org> (raw)
In-Reply-To: <3EF395A3-9A7A-42E7-B084-C65474AF2DE6@gmail.com> (message from Dmitry Galinsky on Fri, 12 Dec 2008 01:54:51 +0300)

> From: Dmitry Galinsky <dima.exe@gmail.com>
> Date: Fri, 12 Dec 2008 01:54:51 +0300
> Cc: 
> Reply-To: Dmitry Galinsky <dima.exe@gmail.com>, 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".







      parent reply	other threads:[~2008-12-12 12:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <tvdtpx2y5.fsf@fencepost.gnu.org>
2008-12-11 22:54 ` bug#1541: 23.0.60; Emacs don't see $PATH Dmitry Galinsky
2008-12-12  7:40   ` bug#1541: marked as done (23.0.60; Emacs don't see $PATH) Emacs bug Tracking System
2008-12-12 12:15   ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1LB6vb-0006bV-M3@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=1541@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=dima.exe@gmail.com \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.