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 |