NetBSD Problem Report #60899
From www@netbsd.org Sun Oct 18 11:29:47 2026
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)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 5029C1A923B
for <gnats-bugs@gnats.NetBSD.org>; Sun, 18 Oct 2026 11:29:47 +0000 (UTC)
Message-Id: <20261018112946.191331A923C@mollari.NetBSD.org>
Date: Sun, 18 Oct 2026 11:29:46 +0000 (UTC)
From: uwe@stderr.spb.ru
Reply-To: uwe@stderr.spb.ru
To: gnats-bugs@NetBSD.org
Subject: syntax of config(1) options is not documented
X-Send-Pr-Version: www-1.0
X-From4GNATS: "uwe@stderr.spb.ru via gnats" <gnats-admin@NetBSD.org>
>Number: 60899
>Category: bin
>Synopsis: syntax of config(1) options is not documented
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 18 11:30:00 +0000 2026
>Originator: Valery Ushakov
>Release: NetBSD 11.0
>Organization:
>Environment:
>Description:
config(5) does not document the syntax of "value" in "defaparam" or "options".
When you learn from RTFS what the syntax is, you are still in for a
surprise, b/c
options CNMAGIC="\"\\x27\\x01\""
results in
#define CNMAGIC "\x27\x01"
but adding parens:
options CNMAGIC="(\"\\x27\\x01\")"
results in
#define CNMAGIC (\"\\x27\\x01\")
See fprintstr() in usr.bin/config/mkheaders.c
>How-To-Repeat:
Try to specify a kernel config option value that is not a simple string.
>Fix:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.