default shell in Ubuntu

View: New views
5 Messages — Rating Filter:   Alert me  

default shell in Ubuntu

by vsrk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

First of all, pardon me for raising fundamental query.
I like now about default shell available in terminal mode.
It seems it is dash and NOT bash, as /usr/bin/sh links to /usr/bin/dash.
Is my premise correct?
If so in what way dash differs from bash?
Is any web link available to documentation on features and use of dash?

--
vsrk sarma


--
ubuntu-users mailing list
ubuntu-users@...
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Re: default shell in Ubuntu

by Mihamina Rakotomandimby-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

11/09/2009 09:16 AM, vsrk sarma:
> If so in what way dash differs from bash?

http://www.google.com/search?q=bash+vs+dash

--
       Architecte Informatique chez Blueline/Gulfsat:
    Administration Systeme, Recherche & Developpement
                                    +261 33 11 207 36

--
ubuntu-users mailing list
ubuntu-users@...
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Re: default shell in Ubuntu

by Raseel Bhagat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Mon, Nov 9, 2009 at 11:46 AM, vsrk sarma <vsrksiva@...> wrote:
First of all, pardon me for raising fundamental query.
I like now about default shell available in terminal mode.
It seems it is dash and NOT bash, as /usr/bin/sh links to /usr/bin/dash.
Is my premise correct?
If so in what way dash differs from bash?
Is any web link available to documentation on features and use of dash?

I have found this wierd too.
Although I did not find any discernible difference during normal user operations, (looks like dash reads the .bashrc file too ;-)),
I got into some issues when compiling a source code.
Unlinking /bin/sh and linking it to /bin/bash solved the problem for me.

Thanks,
Raseel

--
ubuntu-users mailing list
ubuntu-users@...
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Re: default shell in Ubuntu

by James Michael Fultz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* Raseel Bhagat <raseelbhagat@...> [2009-11-09 12:19 +0530]:

> On Mon, Nov 9, 2009 at 11:46 AM, vsrk sarma <vsrksiva@...> wrote:
>
> > First of all, pardon me for raising fundamental query.
> > I like now about default shell available in terminal mode.
> > It seems it is dash and NOT bash, as /usr/bin/sh links to /usr/bin/dash.
> > Is my premise correct?
> > If so in what way dash differs from bash?
> > Is any web link available to documentation on features and use of dash?
> >
>
> I have found this wierd too.
> Although I did not find any discernible difference during normal user
> operations, (looks like dash reads the .bashrc file too ;-)),
> I got into some issues when compiling a source code.
> Unlinking /bin/sh and linking it to /bin/bash solved the problem for me.

System default shell does equal user's shell.

Have a look at '/etc/passwd' and the SHELL environment variable.

--
ubuntu-users mailing list
ubuntu-users@...
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Re: default shell in Ubuntu

by Rashkae-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

vsrk sarma wrote:
> First of all, pardon me for raising fundamental query.
> I like now about default shell available in terminal mode.
> It seems it is dash and NOT bash, as /usr/bin/sh links to /usr/bin/dash.
> Is my premise correct?

Not quite.

The default shell for users should be /bin/bash (you can verify by
examining /etc/passwd file)

dash is meant to be non-interactive, and having so many features for an
interactive shell removed, is much faster than bash at executing shell
scripts.  (most of which start  with #!/bin/sh)

When the change was first introduced several versions of Ubuntu ago,
there were some conflicts with shell scripts that wrongly assumed
/bin/sh was bash and used non-posix complient syntax (sometimes called
bashisms.)  Those should all be weeded out by now, and any shell script
you run across should either be Posix complient, or refers to bash by name.


--
ubuntu-users mailing list
ubuntu-users@...
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users