[exim] Whitespace and line continuation

Top Pagina
Delete this message
Reply to this message
Auteur: Marc Sherman
Datum:  
Aan: exim-users
Onderwerp: [exim] Whitespace and line continuation
I just discovered something strange with exim's line continuation.
Strictly speaking, it's not a bug, because it's documented behaviour in
section 6.2, but I found it rather confusing.

I had a config entry:

ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :\
                       172.16.0.0/12 : 10.0.0.0/8 : 169.254.0.0/16 :\
                       ::::/0


Because of the whitespace rules in section 6.2, this caused an error
when the list was parsed:

2005-06-14 10:32:58 1DiCTK-0003MC-0O failed to open /0 when checking
"0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :172.16.0.0/12 : 10.0.0.0/8 :
169.254.0.0/16 :::::/0": No such file or directory

The fix was straightforward (changing each ":\" to ": \"), but it still
feels strange to me; it seems to me that line continuation should be
replaced with a single space, rather than nothing, in the resulting
config line after whitespace trimming.

- Marc