Shell – Why is the default shell in Debian 7 bash

debianshell

As per documentation, dash should be the default shell in Debian Wheezy, however when I open up a terminal and check the SHELL variable, it points to /bin/bash. Since this is a fresh install, and I have not made any changes, why is this not pointing to /bin/dash? Or is the default shell stored or pointed to by some other variable?

Best Answer

According to the documentation, the default /bin/sh shell is dash, but the default interactive shell is bash:

The default interactive shell is bash (it's defined in /etc/adduser.conf then copied to the user profile, see chsh(1) manpage).

System scripts with the POSIX shebang will be run by dash, but when you--the user--open an interactive shell, it will be /bin/bash unless you elect to change it.

Related Question