Quote:
Originally Posted by Roydd85
...is the Korn shell better than the Bourne again shell?
|
Context may help you arrive at the best answer for you, yourself. Any shell scripts provided in a base installation are written to OpenBSD's
ksh(1) shell. It is not advisable for users to switch what shell
root uses without
extensive knowledge of what these scripts do.
However, what shell is used in a user account is a matter of personal opinion & taste.
Personally, I would advocate writing any & all personal shell scripts to be
sh(1) compatible as all other shells
(should) treat the Bourne shell
(not BASH...) as the lowest common denominator when it comes to compatibility. This will help keep your work shell agnostic as most shells should be able to interpret Bourne shell scripts. Having said that, all shells do not interpret every script targeting the Bourne shell in the same manner, so your mileage may vary
(YMMV).
Likewise, if you have specific reasons for targeting your work to using BASH specific features, go for it. You are free to write scripts any way you want.