The original Korn shell version is known as ksh88. It is default on many UNIX like operating system including AIX 4. The ksh93 is an updated version. There are also modified versions of ksh93 which add new features. To get ksh version open a command-line terminal (select Applications > Accessories > Terminal), and then type the following command:
The above version indicates that I’m using the official ksh93t+ version. It was released on 2010-03-09. If above command failed try pressing ^V ( control + V ) OR ESC + ^V ( Escape followed by control + V ) to display version of the shell in Emacs mode.
How can I get the version of ksh?
Another option is to type the following command:
strings /bin/ksh | grep Version | tail -2
@(#)$Id: Version AJM 93u+ 2012-08-01 $
Shell script example to find out if I am using modern version of ksh
The sample script is as follows:
#!/bin/ksh if whence -a whence > /dev/null; then echo "Good. You are using modern version of KSH." else echo "Oh no. You are using an older version of KSH." fi