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 11:55 AM.. 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 01: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 12:33 PM
Unix/Linux/BSD mindful123 UNIX and Linux Applications 6 03-05-2013 12:59 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 09:47 PM
Unix vs Linux lizzy UNIX for Dummies Questions & Answers 2 01-15-2008 02:36 AM
Unix/Linux kprescod4158 UNIX for Dummies Questions & Answers 2 10-31-2007 05:01 AM
unix on linux madhu_msinus@ya UNIX for Dummies Questions & Answers 1 08-08-2007 12:19 PM
Linux AND Unix mr_prince UNIX for Dummies Questions & Answers 1 03-22-2005 05:54 PM
Unix, Linux etc Kynaeus UNIX for Dummies Questions & Answers 2 10-04-2004 04:26 PM
UNIX and LINUX kiwi_bloke Linux 1 08-02-2004 09:12 PM
What is unix and is linux a unix system Perderabo Answers to Frequently Asked Questions 0 03-13-2004 08:22 PM


All times are GMT -4. The time now is 01:28 AM.

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