Unix/Linux Go Back    



ksh on UNIX and Linux

UNIX for Dummies Questions & Answers




Kindly Note - This is a Single User Post by Forum Member vbe Regarding:
ksh on UNIX and Linux.
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 10-30-2013   -   Original Discussion by rdogadin
vbe's Unix or Linux Image
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 17 June 2018, 9:38 AM EDT
Location: Switzerland - GE
Posts: 6,544
Thanks: 308
Thanked 563 Times in 525 Posts
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)