Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently using the bash shell but am a bit confused about man entries. For example the man entry for source (man source):

     The exec command specified by the arguments is  executed  in...

     exec executes command in place of the current  she...

     With the exec built-in, if arg is give...

There are entries for several shells but not for the bash shell. I know that bash stands for Bourne Again SHell so does this imply that the description for sh is the one that applies to bash?


share|improve this question
Recall that sh is the Bourne shell, and bash is the Bourne-again shell. – eleven81 Feb 16 '10 at 14:33
up vote 1 down vote accepted

That man-page looks like it comes from a Unix (rather than Linux) system, like Solaris.

On Solaris, /bin/sh is the original Bourne shell, which lacks history, completion or the more advanced parameter substition that you'd find in ksh, POSIX and Bash shells. Also , command substitution can only be done with backticks, and not with $(command).

(Though if you have /usr/xpg4/bin earlier in your PATH, running 'sh' will get you the POSIX-compatible shell instead.)

As profjim says, use man bash for details of Bash syntax.

share|improve this answer

On many distros, sh is a link to bash, so yes running sh will give you bash, however it will be running in a restricted, sh-compatible mode. You can't rely on this without checking, though. sh might instead be a link to dash, or to its own binary.

For bash references, do man bash. Also look at the Bash Reference Manual and the Advanced Bash Scripting Guide.

share|improve this answer

If you're looking for help on a specific bash builtin, usually

help [builtin_name]

is what you want.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.