NetBSD-Bugs archive

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

bin/58116: npf.conf(5) doesn't allow comments inside lists



>Number:         58116
>Category:       bin
>Synopsis:       npf.conf(5) doesn't allow comments inside lists
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 05 01:05:00 +0000 2024
>Originator:     Taylor R Campbell
>Release:        current, 10, 9, 8, ...
>Organization:
The NetPF Foundation
>Environment:
rainblobular and sleety
>Description:
Can't write this:

$ports = {
    123,    # foo
    456,    # bar
    789,    # baz
}

npf.conf treats line break like `;', and supports `\' continuation lines but only if there's no comment.  It also doesn't like the trailing comma, which would be friendlier to M-x sort-lines.  So although the input can be broken into lines, they can't have comments or be reliably reordered:

$ports = {
    123, \ 
    456, \
    789 \
}
>How-To-Repeat:

>Fix:
Yes, please!



Home | Main Index | Thread Index | Old Index