REDUX: How to overcome an incompatibility between the ksh on Linux vs. that installed on AIX/Solaris/HPUX?

I wouldn't use pdksh on Linux anymore. Since AT&T ksh has become OpenSource there are packages available from the various Linux distributions. E.g.

RedHat Enterprise Linux and CentOS include ksh93 as the "ksh" RPM package pdksh is still mentioned in many installation requirement documentations from software vendors. We replaced pdksh on all our Linux systems with ksh93 with no problems so far.

I wouldn't use pdksh on Linux anymore. Since AT&T ksh has become OpenSource there are packages available from the various Linux distributions. E.g.

RedHat Enterprise Linux and CentOS include ksh93 as the "ksh" RPM package. Pdksh is still mentioned in many installation requirement documentations from software vendors. We replaced pdksh on all our Linux systems with ksh93 with no problems so far.

OTOH, ksh overrides it with a builtin. Maybe there's a way to get it to not do that? Or maybe you can explicitly alias to /usr/bin/test, if /usr/bin/test on all platforms is compatible?

Is a builtin command in both ksh93 and pdksh.. – Andrew Stein Sep 19 '08 at 14:34.

Well after one year there seems to be no solution to my problem. I am adding this answer to say that I will have to live with it......

In Bash the test -a operation is for a single file. I'm guessing that in Ksh88 the test -a operation is for a single file, but doesn't complain because the other test words are an unspecified condition to the -a. You want something like for K in /etc/rc2.

D/K* ; do test -a $K && echo heck-yea ; done I can say that ksh93 works just like bash in this regard. Regrettably I think the code was written poorly, my opinion, and likely a bad opinion since the root cause of the problem is the ksh88 built-in test allowing for sloppy code.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions