From nobody Mon Apr 27 10:47:04 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4g40cr5346z6ZsTR; Mon, 27 Apr 2026 10:47:08 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4g40cr4Tk9z3Z3Q; Mon, 27 Apr 2026 10:47:08 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777286828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iWnqLRcRD+CEnscUNyENLAoMnDIYDRcpc0ZeY1/fxoA=; b=sycmvk6or6o3nWLPMWgZrwXSAKThqgTwrs0yBc+p5xrKf2N5IBO7ZZUGs/jUuzF6IMf7PY X1sc4R1lH5b9Q+U2fXnSOqs5hAiPNdJ7oBHljln3i6r8L6ElbSeEmZqxc1M0v5aFSYSWpJ PDsAb+uaU/fUTfSzt0aqTEGn6g/xL8SVOxENP6UA7zRpue9mslcn2DZyXdkpT6eCAzD91A gbpdWjaq/46sKm6j4T/WZVHpVWKbxyY09IH2Z58lLPsNXA746b8tujYGz7hYpN4fse2WhT cnWHRBTnbPJlS3CDA1woIDklGYgzkpbJC/OQJcBWXrBVX4OanHWKb27NbjmpiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1777286828; a=rsa-sha256; cv=none; b=o9vl4lNKkHFpFfnf7pkOaKcUXutOb0KJBpve1VS33nKYdmQFXh6aNipLZ5SCvAP9pfIwzS s6IBo6MvmgQ6YSEnCBK2LZQX2hFDluLa2RxMeI5gUznX+a0aXtJ9M7SS6g/OcCG+r0RIkD DntWkMniVBQ/7j0I48fg4IkzStDh4wksPiWe7IfPW7Z0HJpIdm87M1vdNjb6KYsjonCDs/ cTOnbfwcP3eWAkGRWbu+DASWSVz5dRxcd4xdT1O2yIzakAJSCy/xK+l9D8OlGNKTAVhIQk S1mkKRGOfphAL4TAkvlNaCCPHYDjMbIbNPk+e8DVyyAwZdr2tT2g7lVzr98xZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777286828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iWnqLRcRD+CEnscUNyENLAoMnDIYDRcpc0ZeY1/fxoA=; b=nFkYG/umFgjO8wXo/Khb3LzpB1h02a4BAAhEOy7MhDd8RDf/OOiUap8pauuUQ0B0C8iw6F LftBdY8JZhIac4A56tt1B5JJ3xkhIQA6sGX/pzW1nDDJjgJxMsGsGEDhgRUPqcLZHprUGP L3aVXXJ3wt7pn9WczpYy/uAo/Y8t63gDEh20xNL7d/PmnVMP4JKdKtrZOoTL40Wc/VaD1i 2J4gop7a5c5q4K4NhPxow0sGnRHv47DuthPTGs/Cp+HYfOdiMyoWSfiU+yvaPKJfmXaWmE Ln7GQzpjQ81NJOvl5DQx1kfrjzf1++GECCB5VdbqJsuz5W1Rp+FoPYcaiSCMAA== Received: from ltc.des.dev (lfbn-nan-1-698-103.w86-236.abo.wanadoo.fr [86.236.35.103]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4g40cr2TdMz10Lr; Mon, 27 Apr 2026 10:47:08 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id A02F783331; Mon, 27 Apr 2026 12:47:04 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Simon J. Gerraty Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 566cc005812b - main - safe_set treat ':' and '#' differently In-Reply-To: <69e8f964.39869.24418b55@gitrepo.freebsd.org> (Simon J. Gerraty's message of "Wed, 22 Apr 2026 16:37:56 +0000") References: <69e8f964.39869.24418b55@gitrepo.freebsd.org> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Mon, 27 Apr 2026 12:47:04 +0200 Message-ID: <86jyts1xzr.fsf@ltc.des.dev> List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Simon J. Gerraty writes: > The branch main has been updated by sjg: > > URL: https://cgit.FreeBSD.org/src/commit/?id=3D566cc005812b72a4ba23676465= 1dd8e82c94a166 > > commit 566cc005812b72a4ba236764651dd8e82c94a166 > Author: Simon J. Gerraty > AuthorDate: 2026-04-22 16:37:35 +0000 > Commit: Simon J. Gerraty > CommitDate: 2026-04-22 16:37:35 +0000 > > safe_set treat ':' and '#' differently >=20=20=20=20=20 > Treat '#' as a comment anywhere, > but ':' only at start of line. I can't quite figure out what your goal is with this, but it doesn't seem right: `:` is not at all a comment, it is just a built-in alias for the `true` command. Among other things, this means that (assuming a clean environment) these lines do absolutely nothing: # ${foo:=3Dbar} >baz ; echo $foo #${foo:=3Dbar} >baz ; echo $foo while this line: : ${foo:=3Dbar} >baz ; echo $foo sets the variable `foo` to `bar`, creates or truncates the file `baz`, and finally prints `bar\n` to stdout; and this line: :${foo:=3Dbar} >baz ; echo $foo creates or truncate the file `baz`, emits an error to stderr because the command `:bar` does not exist, and finally prints `bar\n` to stdout. It also means that this line: foo=3Dbar # hello sets `foo` to `bar`, but this one: foo=3Dbar : hello does not (or, more accurately, it does, but only for the duration of the `:` command). (except in our sh, but that's a bug) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org