[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: system variables in DOS clisp

John Levine <johnl@dai.ed.ac.uk> asks:

> Is there any way of accessing DOS variables from inside the DOS version
> of CLISP? That is, I want to do something like this:
>   c:\> set spong="c:\wibble\wombat\"
>   c:\> clisp
>   > (setq *path* (get-dos-variable spong))
>   "c:\wibble\wombat\"

The answer is

      (setq *path* (system::getenv "spong"))

(It will print with doubled backslashes, of course.)