On 2025/04/09 10:02, Stuart Henderson wrote:
> On 2025/04/09 10:59, Olivier Croquin wrote:
> > >Synopsis: pfctl bad parsing of '\n' following '\' at the end of a
> > >comment line
> > >Category: system
> > >Environment:
> > System : OpenBSD 7.6
> > Details : OpenBSD 7.6 (GENERIC.MP) #0: Thu Nov 14 13:43:33 CET
> > 2024
> >
> > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> >
> > Architecture: OpenBSD.amd64
> > Machine : amd64
> >
> > >Description:
> > When pfctl reads a file and encouters a line of comment ending by the exact
> > combination of '\' followed by '\n', it considers the next line as part of
> > the comment.
>
> This long-standing behaviour can't really be changed safely now.
>
also, while the behaviour is not entirely intuitive, care is taken in
the documentation to make the user aware:
The current line can be extended over multiple lines using a backslash
(‘\’). Comments can be put anywhere in the file using a hash mark (‘#’),
and extend to the end of the current line. Care should be taken when
commenting out multi-line text: the comment is effective until the end of
the entire block.