On Mon, May 22, 2006 at 10:40:47PM +0200, Paulo Rodriguez wrote: > > ..... > ######################## > # pas on re0 from any \ # > # to any port 59 # > ######################## > ..... > > is it expected behavior that pfctl complains about a space after the > backslash, DESPITE the line being a comment? > Or is there a good reason for this?
i would think the good reason is that the line is not a comment as you imagine, but would effectively turn into: pass on re0 from any # and then the next line is to any port 59 i made a testfile and then tried 'pfctl -nvvf' on it, here's what i got: --- asshat:1: whitespace after \ asshat:1: syntax error --- putting a '\' on a line only means "escape the next character", which is why the proper practice is to ensure that the only thing that follows '\' in a line where you expect continuation to the next line to occur ought to be the newline itself. fwiw, this is a mistake that i have made a nonzero amount of times in my life. -- jared [ openbsd 3.9-current GENERIC ( may 1 ) // i386 ]

