Removed accidentally committed expansion of paths in SCSH_LIB_DIR.
This commit is contained in:
parent
da53963d82
commit
af976ddde2
23
scsh/top.scm
23
scsh/top.scm
|
@ -490,18 +490,17 @@
|
|||
|
||||
;;; Parse up the $SCSH_LIB_DIRS path list.
|
||||
(define (parse-lib-dirs-env-var)
|
||||
(map resolve-file-name
|
||||
(let ((s (getenv "SCSH_LIB_DIRS")))
|
||||
(if (not s) default-lib-dirs
|
||||
|
||||
(with-current-input-port (make-string-input-port s)
|
||||
(let recur ()
|
||||
(let ((val (read)))
|
||||
(cond ((eof-object? val) '())
|
||||
((string? val) (cons val (recur)))
|
||||
((not val) (append default-lib-dirs (recur)))
|
||||
(else (error "Illegal path element in $SCSH_LIB_DIRS"
|
||||
s val))))))))))
|
||||
(let ((s (getenv "SCSH_LIB_DIRS")))
|
||||
(if (not s)
|
||||
default-lib-dirs
|
||||
(with-current-input-port (make-string-input-port s)
|
||||
(let recur ()
|
||||
(let ((val (read)))
|
||||
(cond ((eof-object? val) '())
|
||||
((string? val) (cons val (recur)))
|
||||
((not val) (append default-lib-dirs (recur)))
|
||||
(else (error "Illegal path element in $SCSH_LIB_DIRS"
|
||||
s val))))))))))
|
||||
|
||||
(define (bad-arg . msg)
|
||||
(with-current-output-port (current-error-port)
|
||||
|
|
Loading…
Reference in New Issue