KSH Version

KSH Version

am 27.01.2008 16:15:36 von Patrice

How do I check the version of ksh on aix 5.3.

Thanks in advance

Re: KSH Version

am 27.01.2008 17:33:01 von Icarus Sparry

On Sun, 27 Jan 2008 10:15:36 -0500, RG wrote:

> How do I check the version of ksh on aix 5.3.
>
> Thanks in advance

Older versions of ksh report the version if you enter control-v in emacs
mode, which you can enter with 'set -o emacs'.

Newer versions store it in a compind variable ".sh.version", so

echo ${.sh.version}

will give it to you.

Re: KSH Version

am 27.01.2008 21:26:19 von Stephane CHAZELAS

On 27 Jan 2008 16:33:01 GMT, Icarus Sparry wrote:
> On Sun, 27 Jan 2008 10:15:36 -0500, RG wrote:
>
>> How do I check the version of ksh on aix 5.3.
>>
>> Thanks in advance
>
> Older versions of ksh report the version if you enter control-v in emacs
> mode, which you can enter with 'set -o emacs'.
>
> Newer versions store it in a compind variable ".sh.version", so
>
> echo ${.sh.version}
[...]

what "$(command -v ksh)"

may also help. On public domain ksh, there's also $KSH_VERSION

--
Stephane