sh

From NetBSD Wiki

Jump to: navigation, search
This article is a stub. You can help by editing it.

The bourne shell, or sh(1), is the original Unix shell. It is installed on virtually every Unix box on the planet and it is standardized by POSIX.

/bin/sh != /usr/bin/bash

A common annoyance among BSD users is the fact that on Linux, /bin/sh is actually a symlink to shells/bash. This causes a lot of problems because bash is not a strictly POSIX-compliant bourne shell. It does have a POSIX-compatibility mode, but this does not leave out all non-POSIX extensions (as it should). This affects BSD users because it means a lot of Linux users (often unknowningly) really write bash scripts, even though they have #!/bin/sh in their header. These scripts fail miserably on systems where the bourne shell is not a symlink to bash, like NetBSD (or any other BSD, for that matter).

See also

  • ksh, the Korn shell (an improved bourne shell)
  • csh, the C shell

References

Retrieved from "http://wiki.netbsd.se/sh"
Personal tools