Operating System - Linux
1753841 Members
8883 Online
108806 Solutions
New Discussion юеВ

Re: Shell script, different result in different O/S???

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: Shell script, different result in different O/S???

>Steven! See my problem has been solved even though I posted in hp forums.

You may be confused. This thread was moved to Linux and then Stuart answered. ;-)

>when I did #/usr/bin/ksh --version, it says bad option. I also assume ksh is corrupted.

That didn't work for me either. I got the version in vi editing mode when I typed control-V.
Qcheck
Super Advisor

Re: Shell script, different result in different O/S???

Thank you Dennis! I didn't know this was moved to Linux. Thanks anyways...
Stuart Browne
Honored Contributor

Re: Shell script, different result in different O/S???

Yeap.. I'm a Penguin..

Don't visit the HP-UX forums much any more.. Haven't had to touch one for about 3 years.. :)
One long-haired git at your service...
Qcheck
Super Advisor

Re: Shell script, different result in different O/S???

Staurt! How can I install ksh on my Linux node???
Heironimus
Honored Contributor

Re: Shell script, different result in different O/S???

Not all Korn shells are created equal. Many Linux distributions ship pdksh as a Korn shell. pdksh implements KSH88, but I don't think it's even a fully-compatible implementation of that. Several years ago AT&T released the code for their KSH93 and some Linux systems now use that instead, others don't because of the AT&T license.

I think most current UNIX platforms use KSH93, but there may still be a few KSH88 holdouts. If you want a Korn shell that will be just like the one on a modern commercial UNIX system you're almost certainly better off with the AT&T version instead of pdksh.