26 Mar 2012 18:12
run-program :environment nil
(lisp-implementation-version) --> "1.0.1"
The documentation of extensions:run-program is misleading:
:environment
An alist of STRINGs (name . value) describing the new
environment. The default is to copy the environment of the current
process.
The alist doesn't describe the NEW environment, it is only MERGED into
the current environment.
Now of course, I consider the current behavior to be a bug:
(text-stream-contents (extensions:process-output
(extensions:run-program "env" '()
:wait t :environment 'nil)))
--> ("NNTPSERVER=news.individual.net" "ESHELL=/bin/bash" …)
I would expect:
(text-stream-contents (extensions:process-output
(extensions:run-program "env" '()
:wait t :environment 'nil)))
--> ()
and:
(text-stream-contents (extensions:process-output
(Continue reading)











RSS Feed