scsh-users
[Top] [All Lists]

alist->env is broken

To: scsh-bugs@martigny.ai.mit.edu
Subject: alist->env is broken
From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
Date: 19 Sep 1996 14:41:00 +0200
Sender: sperber@informatik.uni-tuebingen.de
You guys probably know this one already ...

> (alist->env '(("BLA" . "bla")))

Error: check-arg
       #{Procedure 40 vector?}
       ("BLA=bla")
       #{Procedure 8565 %install-env/errno}

>From syscalls.scm:

;;; ALIST->ENV

(define-foreign %install-env/errno
  (install_env (vector-desc env-vec))
  (to-scheme integer errno_or_false))

(define-simple-errno-syscall (%install-env env-vec) %install-env/errno)

(define (alist->env alist)
  (%install-env (alist->env-list alist)))

Shouldn't there be an "apply vector" or something around the argument
to %install-env?

Cheers =8-} Mike


<Prev in Thread] Current Thread [Next in Thread>