New Shell In Oracle Solaris 11

Posted by rickramsey on Oracle Blogs See other posts from Oracle Blogs or by rickramsey
Published on Fri, 18 Nov 2011 09:31:01 -0600 Indexed on 2011/11/18 17:57 UTC
Read the original article Hit count: 567

Filed under:

In Oracle Solaris 11, Korn Shell 93 (/usr/bin/ksh/ or usr/bin/ksh93) replaces both the Bourne Shell (/usr/bin/sh or /sbin/sh) and Korn Shell 88 (/usr/bin/ksh).

There are some incompatibilities between the shells. They are described in:

/usr/share/doc/ksh/COMPATIBILITY

If a script has compatibility problems you can use the legacy shell by changing the she-bang line:

If this doesn't work

Use This

#!/bin/ksh #!/usr/sunos/bin/ksh
#!/usr/bin/ksh #!/usr/sunos/bin/ksh
   
#!/bin/sh #!/usr/sunos/bin/sh
#!/usr/bin/sh #!/usr/sunos/bin/sh
#!/sbin/sh #!/usr/sunos/bin/sh

- Mike Gerdts http://blogs.oracle.com/zoneszone/

Website
Newsletter
Facebook
Twitter

© Oracle Blogs or respective owner

Related posts about /Solaris