Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How-to check for ksh88 or ksh93?

Dude!Jul 7 2011 — edited Jul 9 2011
Hello,

I'm trying to find out whether the current running command shell interpreter is ksh88 or ksh93.

I have come up with the following coding so far:
[ "`echo "\c" | grep c`" ] && echo ksh93 || echo ksh88
But can I really use the above to check if a Korn shell is 88 or 93?

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2011
Added on Jul 7 2011
18 comments
6,434 views