EXEC-PATH-LIST is now a fluid.

This commit is contained in:
olin-shivers 2001-03-11 18:58:54 +00:00
parent 9da196627f
commit d708ef06e2
2 changed files with 10 additions and 10 deletions

View File

@ -184,7 +184,8 @@
string-lib
loopholes ; For my bogus CALL-TERMINALLY implementation.
fluids ; For exec-path-list
loopholes ; For my bogus CALL-TERMINALLY implementation.
scheme
@ -451,4 +452,3 @@
handle
threads) ; sleep
(files dot-locking))

View File

@ -813,7 +813,7 @@
(%exec prog (cons prog arglist) env))))
;(define (exec-path/env prog env . arglist)
; (cond ((exec-path-search (stringify prog) exec-path-list) =>
; (cond ((exec-path-search (stringify prog) (fluid exec-path-list)) =>
; (lambda (binary)
; (apply exec/env binary env arglist)))
; (else (error "No executable found." prog arglist))))
@ -837,7 +837,7 @@
(for-each (lambda (dir)
(let ((binary (string-append dir "/" prog)))
(%%exec/errno binary argv env)))
exec-path-list))))
(fluid exec-path-list)))))
(error "No executable found." prog arglist))))
@ -902,7 +902,7 @@
;;; Some globals:
(define home-directory "")
(define exec-path-list '())
(define exec-path-list (make-fluid '()))
(define (init-scsh-vars quietly?)
(set! home-directory
@ -910,11 +910,11 @@
(else (if (not quietly?)
(warn "Starting up with no home directory ($HOME)."))
"/")))
(set! exec-path-list
(cond ((getenv "PATH") => split-colon-list)
(else (if (not quietly?)
(warn "Starting up with no path ($PATH)."))
'()))))
(set-fluid! exec-path-list
(cond ((getenv "PATH") => split-colon-list)
(else (if (not quietly?)
(warn "Starting up with no path ($PATH)."))
'()))))
; SIGTSTP blows s48 away. ???