- To: email@example.com
- Subject: Re: ~/.profile
- From: Raf Czlonka <firstname.lastname@example.org>
- Date: Sun, 1 Jan 2012 22:51:05 +0000
- Message-id: <20120101225105.GA8571@linuxstuff.pl>
- Mail-followup-to: 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 Sun, Jan 01, 2012 at 09:30:55PM GMT, 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?
> peter@joule:~$ ls ~/.*ash*
> /home/peter/.bash_history /home/peter/.bash_logout /home/peter/.bashrc
1. You confused two things - system $SHELL (sh or /bin/sh) and user login
shell are not the same thing.
2. By default, user login shell is /bin/bash.
3. When new user account is being created by the installer, files are
being copied from /etc/skel to new user's $HOME.
4. root has /bin/sh as its $SHELL
Every time you create an account using high-level adduser utility
/bin/bash is being suggested, when using low-level useradd utility
however /bin/sh is the default.
Hope this sheds some light.