KSH Version

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

Thanks in advance
Patrice [ So, 27 Januar 2008 16:15 ] [ ID #1917113 ]

Re: KSH Version

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.
Icarus Sparry [ So, 27 Januar 2008 17:33 ] [ ID #1917114 ]

Re: KSH Version

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
Stephane CHAZELAS [ So, 27 Januar 2008 21:26 ] [ ID #1917121 ]
Linux » comp.unix.shell » KSH Version

Vorheriges Thema: Bash: fast way to repeat string???
Nächstes Thema: Run and kill program after specific time