Jim Newton
5/26/2016 10:07:00 AM
I found a description of this in "Common Lisp Recipes", the new Edi Weitz book.
It turns out in SBCL you do the following.
(sb-posix:setenv "XYZZY" "12" 1)
I.e. it's not a function in the sb-ext package, but rather in the sb-posix package, getenv is not setf-able, and takes a mysterious 3rd argument.
However, the corresponding function in clisp, ext:getenv is setf-able, also in AllegroCL.