Matthias Kilian wrote:
On Mon, May 22, 2006 at 03:07:14PM -0600, Theo de Raadt wrote:
# pas on re0 from any \ #
# to any port 59 #
[...]
i would think the good reason is that the line is not a comment
as you imagine, but would effectively turn into:
[...]
\<ret> is the only special case that says "ignore both". In any other
case \<c> should translate into just the character <c>.
This \<whitespace> special case "it is an errors that a few people
will make, so fail when we encounter it" stuff is paranoid balony that
just causes more harm.
Despite of this, even \<ret> shouldn't be treated special on a line
comment, IMHO.
It's common that anything after an unquoted # up to the newline
including backslashed text is ignored, at least in sh(1), awk(1)
and friends.
I agree. Even the sample pf.conf says...
#rdr pass on $ext_if proto tcp from <spamd> to port smtp \
# -> 127.0.0.1 port spamd
...when it actually _could_ use...
#rdr pass on $ext_if proto tcp from <spamd> to port smtp \
-> 127.0.0.1 port spamd
...which however, while possibly useful at times, just feels quite
strange and non-standard to me.
/Alexander