#| -*-Scheme-*-
-$Id: dospth.scm,v 1.34 1996/02/28 23:30:20 cph Exp $
+$Id: dospth.scm,v 1.35 1996/02/29 22:11:54 cph Exp $
Copyright (c) 1992-96 Massachusetts Institute of Technology
((#\$)
(let ((value (get-environment-variable (string-tail string 1))))
(if (not value)
- components
- (replace-head value))))
+ (error "Unbound environment variable:" name))
+ (replace-head value)))
((#\~)
(replace-head
(->namestring
(else directory)))
(define (parse-directory-components components)
- (map parse-directory-component
- (list-transform-negative components string-null?)))
+ (if (there-exists? components string-null?)
+ (error "Directory contains null component:" components))
+ (map parse-directory-component components))
(define (parse-directory-component component)
(if (string=? ".." component)
#| -*-Scheme-*-
-$Id: unxpth.scm,v 14.22 1996/02/28 23:26:12 cph Exp $
+$Id: unxpth.scm,v 14.23 1996/02/29 22:12:07 cph Exp $
Copyright (c) 1988-96 Massachusetts Institute of Technology
((#\$)
(let ((name (string-tail string 1)))
(let ((value (get-environment-variable name)))
- (if value
- (replace-head value)
- components))))
+ (if (not value)
+ (error "Unbound environment variable:" name))
+ (replace-head value))))
((#\~)
(replace-head
(->namestring
directory))
(define (parse-directory-components components)
- (map parse-directory-component
- (list-transform-negative components string-null?)))
+ (if (there-exists? components string-null?)
+ (error "Directory contains null component:" components))
+ (map parse-directory-component components))
(define (parse-directory-component component)
(if (string=? ".." component)