Ralf Wildenhues wrote:

because, for example, OpenBSD uses a modified pdksh as /bin/sh, and one
of the modifications consists of not setting KSH_VERSION any more.  :-/
I am at a loss as how to detect this cleanly, suggestions welcome.

if test "X${RANDOM}" != "X${RANDOM}" -a "X${BASH_VERSION+set}" = "Xset"
then echo this is ksh
fi


Reply via email to