30 Oct
2012
30 Oct
'12
11:44 p.m.
On 10/30/2012 07:21 PM, Hans Hagen wrote:
So the question is, should the scripts that come with context (like the installer) be explicit and become #! /bin/bash ?
Hans
If you're depending on specific syntax or features of bash, that would be the way to go. I suspect most/all Linux and BSD distributions come with bash, even if it's not the default shell. Solaris or HPUX or AIX not so much. Since I didn't always have root, I couldn't install bash even if I wanted to so I stuck to Bourne shell. KSH93 is a superset but 100% upwards compatible so anything written for the Bourne shell will run as expected. Not quite sure what PDKSH does. -- Bill Meahan Westland, Michigan USA