Is there a way to know the version currently running?
For programmatically displaying a string like:
"newLISP v.8.8.0-p2 on linux"
			
			
									
									newLisp version function
newLisp version function
WBR, Dmi
						Hello Dmi,
I'm glad that helped. Here's a function using sys-info that might also be helpful.
			
			
									
									
						I'm glad that helped. Here's a function using sys-info that might also be helpful.
Code: Select all
(define (newLisp-version)
  (let
    (
    OS '("unknown" "linux" "bsd" "osx" "solaris" "cygwin" "win32")
    FORMAT "newLisp v%s.%s.%s-p%s on %s"
    )
  ;body of let
    (apply format (flat (list FORMAT (explode (string ((sys-info) -2))) (OS ((sys-info) -1))))) ))There is a 'secret' number for Tru64Unix as well (9), maybe you want to add it also:
Actually, the number 7 is used for the Win32 version compiled with Borland, and 8 is used for WindowsCE.
Peter
			
			
									
									
						Code: Select all
(set OS '("unknown" "linux" "bsd" "osx" "solaris" "cygwin" "win32" "" "" "Tru64Unix"))
Peter