- To: email@example.com
- Subject: Re: ~/.profile
- From: Richard Hector <firstname.lastname@example.org>
- Date: Mon, 02 Jan 2012 11:38:54 +1300
- Message-id: <4F00E07E.email@example.com>
- In-reply-to: <firstname.lastname@example.org>
- References: <email@example.com> <20111219184739.GE438@hysteria.proulx.com> <firstname.lastname@example.org> <20111219222419.GA22616@hysteria.proulx.com> <20111220205521.GJ3296@think.nuvreauspam> <email@example.com> <20111221201326.GA30138@hysteria.proulx.com> <firstname.lastname@example.org>
On 02/01/12 10:30, email@example.com wrote:
>> ... executed with /bin/sh which is not bash by default.
> Understood; but why does the installer put these and no .dashrc?
The shell you run interactively (specified per-user in /etc/passwd) is
usually bash, because it's more friendly for interactive use. Dash is
smaller and lighter, and chosen presumably for that reason to run most
of the system scripts, which use /bin/sh explicitly.
/bin/sh used to be bash - Ubuntu switched first, I think - leading to
all sorts of interesting bugs with bash-specific features in scripts ...