On 8/20/07, UNIX admin <tripivceta at hotmail.com> wrote: > I've written a number of ksh scripts over the years with portability in mind, > and they've run on IRIX, HP-UX and Solaris without any problems, out of the > box.
I've had no problems going between HP-UX and Solaris with ksh. I can't say that I did a lot of heavy scripting in my Irix days. I did have significant problems writing in /bin/sh on HP-UX then executing on Solaris, primarily because /bin/sh on HP-UX is rather close to the Solaris /bin/ksh (at least as far as the features I used). The biggest problem came in with pdksh, a ksh work-alike that used to ship as /bin/ksh on various Linux distros. The main incompatibility that comes to mind is the value of $? in certain rather involved pipelines. I have long since forgotten + lost the exact code. Way too many hours of debugging problems that shouldn't exist made me switch to bash in that environment. I think the conversion process was as simple as changing a bunch of print statements to echo statements. Mike -- Mike Gerdts http://mgerdts.blogspot.com/
