diff --git a/src/CHANGELOG b/src/CHANGELOG index 0eb2bab7e..1ed190945 100755 --- a/src/CHANGELOG +++ b/src/CHANGELOG @@ -9,6 +9,9 @@ ECL 9.11.1: - LOAD works on special files (/dev/null and the like). + - New command line option --version outputs the version number preceded + by the implementation name ("ECL 9.11.1" in this particular release). + * Bugs fixed: - In single-threaded builds, ECL did not properly restore the signal mask diff --git a/src/lsp/cmdline.lsp b/src/lsp/cmdline.lsp index 8f03e770d..64b676e89 100644 --- a/src/lsp/cmdline.lsp +++ b/src/lsp/cmdline.lsp @@ -53,6 +53,10 @@ Usage: ecl [-? | --help] ("-h" 0 #0# :noloadrc) ("-norc" 0 nil :noloadrc) ("--" 0 nil :stop) + ("--version" 0 + (progn (setf quit 0) + (format *standard-output* "ECL ~A" (lisp-implementation-version))) + :noloadrc) ("-debug" 0 (setf si::*break-enable* t)) ("-nodebug" 0 (setf si::*break-enable* nil)) ("-eval" 1 (eval (read-from-string 1)))