restore user path when launching

svn: r2831
This commit is contained in:
Eli Barzilay 2006-04-28 02:40:44 +00:00
parent 1c412e58ad
commit 9fa7991e86

View File

@ -250,6 +250,7 @@
(equal? (car dest-explode) (car bindir-explode)))
(string-append
"# Make this PATH-independent\n"
"saveP=\"$PATH\"\n"
"PATH=/usr/bin:/bin\n"
"\n"
(if has-readlink? ""
@ -288,6 +289,7 @@
(string-append
"/" (protect-shell-string (apply build-path p)))))))
"\"\n"
"PATH=\"$saveP\"\n"
"\n")
;; fallback to absolute path header
(make-absolute-path-header bindir))))