tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [RFC] inetd(8) changes proposal



Le Wed, May 31, 2023 at 08:16:52AM -0400, Mouse a écrit :
> > The inclusion directive is a dot i.e. a here script:
> 
> Well, as I think someone else pointed out, I wokuldn't call that a here
> script.  sh spells it ".", csh spells it "source", but here script is
> more often used for "<<" style input, input that's inline, which an
> included file by definition is not.
> 
> > This means that all definitions have a global scope and that the
> > feature of the default address, if not specified, is not limited to
> > the file that is dot'ed there.
> 
> Then there is definitely a use for including the same file more tha
> once:
> 
> 10.7.44.184:
> . private-services
> 172.18.9.1:
> . private-services
> *:
> . everyone-services

Yes. This is why the interdiction to include several times the same file
will be suppressed. Only loops will cause failure---in fact, in the
code, the interdiction to load several times the same file was,
apparently, the way chosen to prevent loops.
-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C


Home | Main Index | Thread Index | Old Index