Summary: | (baselayout-2.0.0_alpha) Ability to change the script interpreter | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Luigi 'Comio' Mantellini <luigi.mantellini+gentoo> |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WONTFIX | ||
Severity: | enhancement | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Luigi 'Comio' Mantellini
2007-04-29 10:42:51 UTC
Why don't you want to modify the /bin/sh link? /bin/sh should be guaranteed to be a POSIX compliant shell and anything that calls /bin/sh should expect it to be just that and no more. (In reply to comment #1) > Why don't you want to modify the /bin/sh link? /bin/sh should be guaranteed to > be a POSIX compliant shell and anything that calls /bin/sh should expect it to > be just that and no more. > Because at boot time I need that the system is faster... and a reduced shell (like busybox, ash) may be a good choice. After the boot phase I wont a complete and full-featured sh shell (like bash). ciao (In reply to comment #2) > Because at boot time I need that the system is faster... and a reduced shell > (like busybox, ash) may be a good choice. > > After the boot phase I wont a complete and full-featured sh shell (like bash). Right, but you can have any shell as your login shell as defined in /etc/passwd. Only programs care about /bin/sh 99% of the time I think. while i agree with Roy's answer here wrt original report, i can see it going the other way ... you want /bin/sh to be say dash, but for whatever reason you want baselayout to use /bin/bash (perhaps for bashisms in conf.d/net) ... but it may be hard to inject this configuration setting in as you'd have a chicken/egg problem ... you'd need the user's shell config before you source the user's config files ... so i guess this isnt a trivial change so just close it as WORKSFORME:SET/bin/shYOURSELF Yeah, I cannot justify the time taken to do this versus any gain we might get. If /bin/sh doesn't work as expected then the program using it needs to be fixed, and if that gets hidden away (which I think is what the reporter really wants) then it just takes longer to fix things :) |