Hello,
Quote:
Originally Posted by mtx
Ok i don't know if this is the wisest decision so i am gonna ask your opinion about which shell do you use for scripting?
|
Korn was an attempt to integrate both the Bourne and C shells (it's debatable as to how successful that attempt has been). But, I find 9 times out of 10, if it works in Bourne, it'll work in Korn. One time, I had to translate a Bourne script to Korn and the only thing I had to change was the line that points to the shell from
#! /bin/sh to
#! /bin/ksh.
Many do use Korn for scripting now, I think it is number 2 or 3 after Bash - but Bash is still the undisputed king (cf. LinuxQuestions 2007 Member Choice Awards).
Like corey_james said, for ultimate portability, go with Bourne.
But, learning Korn is still a good skill to have, and if you know Korn or Bash, you know about 90% of the other respective language.