Subject: Re: Re: [ast-users] Determining the ksh93 version
--------

> the last form will be used from now on and can be tested via
> wither of these vars
> 
>         ${.sh.version}
>         $KSH_VERSION
> 

In addition, .sh.version and KSH_VERSION can be used in an arithmetic
expression to yield a numerical value, for example,

$ print ${KSH_VERSION}
Version JM 93t+ 2009-01-28

$ print $((KSH_VERSION))
20090128

or      if((KSH_VERSION > 20080828 ))
        then    ...
        else    ...
        fi

David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to