FS#19551 - [initscripts] initscripts should be dash compatible
Attached to Project:
Arch Linux
Opened by Andres P (llanero) - Friday, 21 May 2010, 02:59 GMT
Last edited by Thomas Bächler (brain0) - Wednesday, 09 June 2010, 17:41 GMT
Opened by Andres P (llanero) - Friday, 21 May 2010, 02:59 GMT
Last edited by Thomas Bächler (brain0) - Wednesday, 09 June 2010, 17:41 GMT
|
Details
Description:
bash(1) is slow and prone to breaking. Additional info: * package version: git The attached patch does not make the scripts POSIX compatible, since local and test -e, among other things, are undefined by POSIX. However, dash(1) does support these. |
This task depends upon
Closed by Thomas Bächler (brain0)
Wednesday, 09 June 2010, 17:41 GMT
Reason for closing: Won't implement
Additional comments about closing: We are using bash arrays and lots of other bash features, removing them now is simply impossible. bash it is, and will be.
Wednesday, 09 June 2010, 17:41 GMT
Reason for closing: Won't implement
Additional comments about closing: We are using bash arrays and lots of other bash features, removing them now is simply impossible. bash it is, and will be.
> there use bash arrays. Examples of these are MODULES, INTERFACES,
> ROUTES, NETWORKS and DAEMONS. They can be rewritten, but there's no
> way this will ever get converted on end-user systems.
True. I've made rc.conf not use arrays in the patch, but it still
depends on the user.
Although realistically all they need to do is usually s,[()],",g
If they are using netcfg, then that's another patch forthcoming.
I say this because that's about the only real bash feature in use; the rest of the changes in the patch are very superficial. That way, people using another shell can more easily merge rc.* when it's time to upgrade.