Clarification on making bash the default shell

Hello.

I just wanted to know if making bash my default shell was as simple as
changing the /bin/sh link to point from /bin/ksh to /usr/bin/bash. I am not
sure if there is a more standard way of doing this. I want to be able to
use it as my default shell, so that it will work on the command line outside
of Photon and inside a pterm.

Thanks very much.

Rodney Lott

I just wanted to know if making bash my default shell was as simple as
changing the /bin/sh link to point from /bin/ksh to /usr/bin/bash. I am
not
sure if there is a more standard way of doing this. I want to be able to
use it as my default shell, so that it will work on the command line
outside
of Photon and inside a pterm.

You can also edit the /etc/passwd file to change the shell used for login.
But if you want to use bash for everything, then modifying the link is fine.

\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>

Thanks for answering my stupid question! I just remembered the /etc/passwd
moments after sending my message.

I think I need more caffeine! :wink:

Thanks again.

Rodney Lott

“Adam Mallory” <amalloryNOSPAM@NOSPAMqnx.com> wrote in message
news:aklcd7$85b$1@nntp.qnx.com

I just wanted to know if making bash my default shell was as simple as
changing the /bin/sh link to point from /bin/ksh to /usr/bin/bash. I am
not
sure if there is a more standard way of doing this. I want to be able
to
use it as my default shell, so that it will work on the command line
outside
of Photon and inside a pterm.

You can also edit the /etc/passwd file to change the shell used for login.
But if you want to use bash for everything, then modifying the link is
fine.

\

Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net

“Rodney Lott” <rlott@fct.ca> wrote in message
news:akldet$b29$1@inn.qnx.com

Thanks for answering my stupid question! I just remembered the
/etc/passwd
moments after sending my message.

I think I need more caffeine! > :wink:

No problem - just FYI, changing the /bin/sh to be bash, might give you
unwanted side effects. Some programs and/or scripts will depend on
/bin/sh’s behaviour and dropping in bash may or may not exhibit the same
behaviour.

I guess the advice here is to change exactly what you need and no more,
instead of making sweeping global changes :wink:

\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>

Also, don’t forget to add /usr/bin/bash to /etc/shells or you won’t be
able to login via FTP.

chris


Adam Mallory <amalloryNOSPAM@nospamqnx.com> wrote:

“Rodney Lott” <> rlott@fct.ca> > wrote in message
news:akldet$b29$> 1@inn.qnx.com> …
Thanks for answering my stupid question! I just remembered the
/etc/passwd
moments after sending my message.

I think I need more caffeine! > :wink:

No problem - just FYI, changing the /bin/sh to be bash, might give you
unwanted side effects. Some programs and/or scripts will depend on
/bin/sh’s behaviour and dropping in bash may or may not exhibit the same
behaviour.

I guess the advice here is to change exactly what you need and no more,
instead of making sweeping global changes > :wink:

\

Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

That would be important - thanks, guys!

Rodney Lott

“Chris McKillop” <cdm@qnx.com> wrote in message
news:akm0kv$shp$2@nntp.qnx.com

Also, don’t forget to add /usr/bin/bash to /etc/shells or you won’t be
able to login via FTP.

chris