Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

migrate ksh script from unix to linux

Tags:

linux

unix

ksh

I need to port several hundreds of ksh scripts from SunOS 5.10 to Linux 2.6.18-231.el5.

On SunOS, ksh version is Version M-11/16/88i. on linux, ksh Version is AJM 93t+ 2010-02-02

It seems there are lots of differnces between ksh on UNIX and Linux...

Is there any doc for the full list of the incompatibility between the ksh on UNIX vs Linux? Could someone have any advices on this? Thanks,

like image 756
phoebe Avatar asked Feb 17 '26 17:02

phoebe


1 Answers

We have several thousand ksh files that we use to test our components on AIX, HP/UX, Solaris and now RHEL 5 and we found that zsh was the closest in behaviour, on Linux, to the Korn shells on the other platforms. We installed zsh and symlinked it to /bin/ksh and were pretty happy with the results.

like image 156
trojanfoe Avatar answered Feb 19 '26 07:02

trojanfoe