On Wed, 28 Jan 2009 14:21:22 +0100 Guido Berhoerster wrote:
> what would be a sensible way to determine the version of the
> running ksh93? I've thought about parsing .sh.version but it
> doesn't seem to have a stable format, so far I have encountered
> Version M-12/28/93d (Solaris 10, dtksh)
> Version M 1993-12-28 s+ (OpenSolaris 2008.11/Debian 4.0)
> Version M 93s+ 2008-01-31 (Ubuntu 8.10, ksh93)
the last form will be used from now on and can be tested via
wither of these vars
${.sh.version}
$KSH_VERSION
the second field contains letters that correspond to the
optional compile-time SHOPT_* features (when ksh was built)
A SHOPT_AUDIT
B SHOPT_BASH
J SHOPT_BGX
L SHOPT_ACCT
M SHOPT_MULTIBYTE
P SHOPT_PFSH
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users