Home
Man
Search
Today's Posts
Register

This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in the UNIX for Beginners Questions & Answers forum.

ksh on UNIX and Linux

Tags
beginners

 

 
Thread Tools Search this Thread
# 1  
Old 10-30-2013
ksh on UNIX and Linux

Hello,

Would the same version of Korn Shell (let's say ksh93) would use the same syntax on UNIX and LINUX and work exactly the same? Thanks
# 2  
Old 10-30-2013
I remember the times when you were taught shell basics, and so was pure sh for compatibility, it is also true for ksh... things may change when it comes to advanced features and extensions where it may differ depending of implementation ( and so KSH93 or KSH88 with posix extension...) ... In other words if your shellscript is pure standard ksh it has no reason to not be compatible between UNIX variants or LINUX so sticking to old syntax will almost always work, recent fany extension may give surprises...
addendum
I stick to old ksh to be sure I have no problem when copying my scripts from HP-UX to Solaris or AIX thought its more AIX to solaris and linux now... (AIX has ksh93 ( the server I squat I upgraded to 7.1 so not sure about the other releases...) HP-UX 11.11 is not KSH93 nor is Solaris 10 ksh)

Last edited by vbe; 10-30-2013 at 12:55 PM.. Reason: addendum
The Following User Says Thank You to vbe For This Useful Post:
rdogadin (10-30-2013)
# 3  
Old 10-30-2013
Many enhancements have been made to ksh93, over the years. If you use the same version of ksh93 on all platforms (ksh --version will tell you) you should not have compatibility problems on different platforms (unless mentioned in de man page ( printf "%T()" comes to mind..). If you stick with the original ksh93 syntax, your script should work with any ksh93 version, including the /usr/dt/bin/dtksh that is present by default on some of the UNICES .

Last edited by Scrutinizer; 10-30-2013 at 02:55 PM..
The Following User Says Thank You to Scrutinizer For This Useful Post:
rdogadin (10-30-2013)
# 4  
Old 10-30-2013
Thank you guys. This is very helpful.
 

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Which is the better platform to learn UNIX/Linux (Kali Linux Vs. Red Hat or other)? ApacheOmega Fedora 12 01-12-2015 01:33 PM
VIP Membership - The UNIX and Linux Forums - Get Your UNIX.COM Email Address Here Neo Post Here to Contact Site Administrators and Moderators 1 09-05-2012 10:47 PM
Unix/Linux kprescod4158 UNIX for Dummies Questions & Answers 2 10-31-2007 06:01 AM
Unix to LINUX Kuz972 UNIX for Dummies Questions & Answers 0 09-22-2005 06:44 AM
Linux AND Unix mr_prince UNIX for Dummies Questions & Answers 1 03-22-2005 06:54 PM
What is unix and is linux a unix system Perderabo Answers to Frequently Asked Questions 0 03-13-2004 09:22 PM
Linux is Unix??? Prettyman UNIX for Dummies Questions & Answers 4 05-16-2002 11:40 AM
UNIX VS. Linux pnoi_blitz UNIX for Dummies Questions & Answers 1 01-29-2002 03:27 AM
Are Unix & Linux the Same ? zodiac UNIX for Dummies Questions & Answers 1 03-12-2001 12:56 AM


All times are GMT -4. The time now is 10:15 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password