Gentoo Archives: gentoo-user

From: Florian Philipp <lists@×××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] eselect sh set dash?
Date: Sat, 05 May 2012 09:19:54
Message-Id: 4FA4F03B.4030908@binarywings.net
In Reply to: Re: [gentoo-user] eselect sh set dash? by Florian Philipp
1 Am 01.05.2012 18:53, schrieb Florian Philipp:
2 > Am 29.04.2012 16:04, schrieb Marc Joliet:
3 >> Am Sun, 29 Apr 2012 00:20:41 +0200
4 >> schrieb Florian Philipp <lists@×××××××××××.net>:
5 >>
6 >>> Hi list!
7 >>
8 >> Hi,
9 >>
10 >>> Now that eselect-sh has been stabilized, I'm wondering if anyone has
11 >>> tried setting dash as the /bin/sh symlink. Any experiences?
12 >>
13 >>
14 >> I've been using dash as my /bin/sh for a while now. I've had it installed since
15 >> June 2009, I suppose I've had the symlink set for the same length of time.
16 >>
17 >> Pretty much all incompatibilities I encountered are fixed now, stuff like
18 >> openrc introducing bashisms (what fun! I never used the debug option of an init
19 >> script before or since), or the Audacity build system having #!/bin/sh but
20 >> using bashisms. I seem to recall that I have one package installed that has this
21 >> problem and requires changing the symlink temporarily, but I don't remember
22 >> which. It might have been fixed by now, though.
23 >>
24 >> Also, the old mysql-init-scripts-1.2 package requires bash, in case that matters
25 >> to you.
26 >>
27
28 The dmcrypt init script also has a single bashism. A bug about this has
29 been open for quiet some time now:
30 https://bugs.gentoo.org/show_bug.cgi?id=408117
31
32 >> So I don't think you should expect any problems (save for the rare exception),
33 >> and for me there was a noticeable speedup with the init system (also reported
34 >> by Flameeyes in his blog).
35 >>
36 >>> Thanks in advance!
37 >>> Florian Philipp
38 >>
39 >> HTH
40 >
41 > Hi Marc,
42 >
43 > thanks for the info! I've tried it on one of my systems and in my
44 > measurements, it definitely scraped off a few seconds of the reboot cycle.
45 >
46 > Regards,
47 > Florian Philipp
48
49 I suggest that anyone who wants to switch tries something like this
50 before rebooting to see if the init scripts can be parsed by dash:
51
52 for i in /etc/init.d/*; do printf '%s\t' "$i"; "$i" status; done
53
54 Regards,
55 Florian Philipp

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
[gentoo-user] «-»: [gentoo-user] eselect sh set dash? Samuraiii <samuraiii@×××××.cz>