Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45735 - Init-scripts use /bin/bash instead of /bin/sh
Summary: Init-scripts use /bin/bash instead of /bin/sh
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-25 12:38 UTC by Jarmo Jaakkola
Modified: 2004-04-06 10:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jarmo Jaakkola 2004-03-25 12:38:22 UTC
The init-scripts (and other shell scripts) in Gentoo use /bin/bash, instead of /bin/sh.

As Gentoo is supposed to be about customization, the Bourne shell used by the system should be changeable.  Currently you have to have bash, even if you don't want to.

Also the system's default Bourne shell (/bin/sh) should, in my opinion, be a static executable.  Just in case...

Reproducible: Always
Steps to Reproduce:
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-03-25 12:48:56 UTC
it may bear some thinking about with respect to /bin/sh versus /bin/bash but it's not high priority, unless you can come up with equivalent portable functionality for us.

as for static shell, we provide app-shells/sash
Comment 2 Jon Portnoy (RETIRED) gentoo-dev 2004-04-06 10:52:04 UTC
The rc system tends to use a lot of bash-specific functions. Many other tools -- including Portage and ebuilds -- also require bash and make use of bash internals not available in a POSIX /bin/sh. I highly doubt it will ever be possible to install Gentoo without bash; it would require reworking just about everything.

Obviously, you can change the default shell for users to whatever you like.