From: Kauker, H. <Hub...@tr...> - 2009-01-20 14:28:38
|
Hi, when a file is loaded calling sbcl.exe 1.0.22 on windows using the --script option, and the file contains the following form: (quit :unix-status 0) then an errorlevel of 1 instead of 0 is returned to the windows command shell. In fact, you can replace 0 by any other value. The returned value is always 1. = = = Example = = = Rem --- run-script.bat @echo off %sbcl_home%\sbcl.exe --script unix-status-0.lisp Rem --- The following always reports 1 !!! echo errorlevel=%errorlevel% ;;;; unix-status-0.lisp (quit :unix-status 0) When using the same function call from the REPL, the correct value is returned, though. = = = Example = = = Rem --- run-repl.bat @echo off %sbcl_home%\sbcl.exe Rem --- The following will report the correct value !!! echo errorlevel=%errorlevel% At the repl prompt enter: (load "unix-status-0.lisp") Hubert |