:: Re: [DNG] Apparently Jessie has run…
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Rainer Weikusat
Date:  
À: dng
Sujet: Re: [DNG] Apparently Jessie has runit
Ian Zimmerman <itz@???> writes:
> On 2016-01-20 22:14 +0000, Rainer Weikusat wrote:
>
>> > - Some headers to tell utilities what runlevels the service should run
>> > at, and dependencies.
>>
>> That's a LSB invention. It's a grotesque travesty as it uses 'magic
>> comments' to embed a declarative mini programming language in an init
>> script which is only ever used when modifying the runlevel
>> configuration. Comments are supposed to be used for relatively short,
>> free-style documentation embedded in code, not for interpretation by
>> programs.
>
> There's precedent for this - the magic shebang lines perl, tcl, guile
> etc. use to get their grubby hands on a script that is masquerading as a
> plain shell script.


The kernel uses #! as two-byte magic number to mean 'whatever follows
that is the interpreter supposed to interpret this file'[*]. It doesn't
execute scripts. Hence, it doesn't define 'scripting language syntax
elements'.