reading an environment variable



Hi Fabrizio,

> (2) to check whether maxima is running under
> windows or linux?

The Lisp variable *FEATURES* is a list of implementation-
dependent keywords; different Lisp implementations put
different stuff in this list, but the three I can check
(clisp, cmucl, and gcl) all put :UNIX on the list
(I'm running linux). No guarantee here, but maybe 

  (%i1) :lisp (defun $unixp () (not (null (memq ':unix *features*))))
  $UNIXP
  (%i1) unixp();
  (%o1)                         true

is useful to you -- presumably a Windows Lisp won't have :UNIX.

For what it's worth,
Robert Dodier


		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com