[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: system variables in DOS clisp
- To: clisp-list <clisp-list@ma2s2.mathematik.uni-karlsruhe.de>
- Subject: Re: system variables in DOS clisp
- From: Bruno Haible <haible@ilog.fr>
- Date: Tue, 20 Aug 1996 21:35:28 +0200
- In-reply-to: <18565.199608191619@cumulus>
- References: <18565.199608191619@cumulus>
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.)
Bruno