(vector-set! new new-i (string prefix value))
new))))
+(define (set-subprocess-environment-variable! name value)
+ (set! scheme-subprocess-environment
+ (setenv! name value scheme-subprocess-environment)))
+
+(define (delete-subprocess-environment-variable! name)
+ (set! scheme-subprocess-environment
+ (let ((prefix (string name"=")))
+ (list->vector
+ (filter (lambda (elt)
+ (not (string-prefix? prefix elt)))
+ (vector->list scheme-subprocess-environment))))))
+
(let ((len (vector-length scheme-subprocess-environment)))
(let loop ((i 0))
(if (fix:< i len)