On Dec 20, 2007 1:58 PM, Major Stubble <<a href="mailto:major.stubble@gmail.com">major.stubble@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It is the default shell for Solaris. Other Unix systems have some<br>version of it available. Linux and BSD typically have pfksh, which<br>to my eyes seems less restrictive than the pure ksh's of the Unix world.<br>
<br>I myself will typically use sh before ksh or bash for most scripts<br>since it is the most restrictive of all. That said, I won't work in<br>a shell environment without my vi keys, so if I am working in bash,<br>
it have to 'set -o vi'.<br><br>All that said, I have never been on a Unix system without ksh. It is<br>also true that I have not been on a Linux system without bash.<br></blockquote></div><br>You need to be careful though. If you assume bash then you should use #!/bin/bash for your shebang. In Ubuntu
6.10 and newer, /bin/sh is linked to dash, which is much more restrictive and tries not to make too many non-posix assumptions. Its also much faster than bash, which is why it's linked as /bin/sh. (to make boot up faster, which it apparently did)
<br><br>cf. <a href="https://wiki.ubuntu.com/DashAsBinSh">https://wiki.ubuntu.com/DashAsBinSh</a><br clear="all"><br>-- <br>Matthew Nuzum<br>newz2000 on freenode