NetBSD Problem Report #58116

From www@netbsd.org  Fri Apr  5 01:00:10 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A68ED1A923B
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  5 Apr 2024 01:00:10 +0000 (UTC)
Message-Id: <20240405005939.0BA0B1A923B@mollari.NetBSD.org>
Date: Fri,  5 Apr 2024 00:59:38 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: npf.conf(5) doesn't allow comments inside lists
X-Send-Pr-Version: www-1.0

>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!

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.