Gentoo Archives: gentoo-dev

From: Jonathan Callen <jcallen@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: newsitem: OpenRC runscript transition (draft 2)
Date: Tue, 23 Aug 2016 00:57:08
Message-Id: 3b4fbcd2-d697-5e6a-c0d5-d2d272f262ee@gentoo.org
In Reply to: Re: [gentoo-dev] newsitem: OpenRC runscript transition (draft 2) by William Hubbs
1 On 08/22/2016 05:45 PM, William Hubbs wrote:
2 > On Mon, Aug 22, 2016 at 09:53:48PM +0200, Ulrich Mueller wrote:
3 >>>>>>> On Mon, 22 Aug 2016, William Hubbs wrote:
4 >>
5 >>> Display-If-Installed: <sys-apps/openrc-0.22
6 >>
7 >> Why the condition on the version number?
8 >
9 > I suppose I could change this to just sys-apps/openrc
10 >
11 >>
12 >>> # emerge --oneshot -av $(grep -l "#!/sbin/runscript" /etc/init.d/*)
13 >>
14 >> Hm, I think you'll want single quotes there, otherwise the exclamation
15 >> mark could trigger bash history expansion. Alternatively, grep for
16 >> /sbin/runscript without the shebang (with the additional advantage
17 >> that it would also catch cases with whitespace after the #!).
18 >
19 > Is '#! /sbin/runscript' a valid shebang line? I didn't think you could
20 > have whitespace after the '#!'.
21 >
22 > William
23 >
24
25 Yes, it is. I just checked my /usr/bin, and found over 100 scripts that
26 all begin with the string "#! /", including many scripts from autoconf,
27 among others.
28
29 --
30 Jonathan Callen

Attachments

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