Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> Re: korn shell and arithmetic

Re: korn shell and arithmetic

From: Mladen Gogala <>
Date: Tue, 22 Jun 2004 14:17:07 -0400
Message-ID: <>

On 06/22/2004 01:39:12 PM, Stephen.Lee_at_DTAG.Com wrote:
> > -----Original Message-----
> > It alwys comes out no? Anyway to get around this?
> There are different versions of the real ksh (i.e. the one from Bell Labs)
> ksh -- ksh88 and ksh93. ksh93 is the one you want. If you are on Linux,
> you probably have public domain ksh (pdksh ... which isn't called pdksh on
> Linux because the Linux propeller heads want you to believe there is
> something wrong with ksh) which is broke and should not be used; but the
> Linux propeller heads insist on including the broken ksh because they, in
> their infallible wisdom, have decided you should use bash. If you are in
> this situation, ksh93 can be downloaded for free.

Of course, if you are on Red Hat or any other RPM-based distribution, you should under no circumstances do this:
wget -c

and then

rpmbuild -rebuild ksh93-2000.10.31.0-1.src.rpm rpm -ivh /usr/src/redhat/RPMS/i386/ksh93-2000.10.31.0-1.i386.rpm

as that would install the proper, fully functional ksh93 package on your box and cause this situation:
Yogi> ssh root_at_tux3101
root_at_tux3101's password:
Last login: Tue Jun 22 13:58:15 2004 from [root_at_tux3101 root]#
[root_at_tux3101 root]# uname -a
Linux tux3101 2.4.20-8 #1 Thu Mar 13 17:18:24 EST 2003 i686 athlon i386 GNU/Linux [root_at_tux3101 root]# cat /etc/redhat-release Red Hat Linux release 9 (Shrike)
[root_at_tux3101 root]#
[root_at_tux3101 root]# rpm -qa|grep ksh93
[root_at_tux3101 root]#

That would be something completely undesirable for all the fans of the bash shell. Of course, you shouldn't cut and paste commands from this email, either.

Mladen Gogala
Oracle DBA

This message is for the named person's use only.  It may contain confidential, proprietary or legally privileged information.  No confidentiality or privilege is waived or lost by any mistransmission.  If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender.  You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks.
Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.

Please see the official ORACLE-L FAQ:
To unsubscribe send email to:
put 'unsubscribe' in the subject line.
Archives are at
FAQ is at
Received on Tue Jun 22 2004 - 13:14:21 CDT

Original text of this message