Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] newsitem: OpenRC runscript transition (draft 2)
Date: Mon, 22 Aug 2016 21:46:06
Message-Id: 20160822214525.GA18116@whubbs1.gaikai.biz
In Reply to: Re: [gentoo-dev] newsitem: OpenRC runscript transition (draft 2) by Ulrich Mueller
1 On Mon, Aug 22, 2016 at 09:53:48PM +0200, Ulrich Mueller wrote:
2 > >>>>> On Mon, 22 Aug 2016, William Hubbs wrote:
3 >
4 > > Display-If-Installed: <sys-apps/openrc-0.22
5 >
6 > Why the condition on the version number?
7
8 I suppose I could change this to just sys-apps/openrc
9
10 >
11 > > # emerge --oneshot -av $(grep -l "#!/sbin/runscript" /etc/init.d/*)
12 >
13 > Hm, I think you'll want single quotes there, otherwise the exclamation
14 > mark could trigger bash history expansion. Alternatively, grep for
15 > /sbin/runscript without the shebang (with the additional advantage
16 > that it would also catch cases with whitespace after the #!).
17
18 Is '#! /sbin/runscript' a valid shebang line? I didn't think you could
19 have whitespace after the '#!'.
20
21 William

Attachments

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

Replies

Subject Author
[gentoo-dev] Re: newsitem: OpenRC runscript transition (draft 2) Jonathan Callen <jcallen@g.o>