Glenn Fowler wrote:
> 
> 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

Is it possible reserve "D" (and "typeset -D") for "IEEE 754-2008-style
decimal floating point", please (this differs from normal IEEE754
floating-point math that it uses bash10 instead of base2 and is needed
for stuff like financial applications (somewhere I've queued a longer
email abóut this in my drafts folder)) ?

>         J       SHOPT_BGX
>         L       SHOPT_ACCT
>         M       SHOPT_MULTIBYTE
>         P       SHOPT_PFSH

BTW: It seems that "P" is currently not used in ast-ksh.2009-02-02 on
Solaris even if |SHOPT_PFSH| is set and <exec_attr.h> is available...

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to