Date: Mon, 27 Apr 2026 12:52:29 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org> To: Simon J. Gerraty <sjg@FreeBSD.org> 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 Message-ID: <86fr4g1xqq.fsf@ltc.des.dev> In-Reply-To: <86jyts1xzr.fsf@ltc.des.dev> ("Dag-Erling =?utf-8?Q?Sm=C3=B8r?= =?utf-8?Q?grav=22's?= message of "Mon, 27 Apr 2026 12:47:04 %2B0200") References: <69e8f964.39869.24418b55@gitrepo.freebsd.org> <86jyts1xzr.fsf@ltc.des.dev>
index | next in thread | previous in thread | raw e-mail
Dag-Erling Smørgrav <des@FreeBSD.org> writes: > It also means that this line: > > foo=bar # hello > > sets `foo` to `bar`, but this one: > > foo=bar : 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) correction: oddly enough POSIX says our sh is right to persist `foo` here, although it would be wrong for any other command; bash agrees with me when invoked as bash, but agrees with POSIX (and our sh) when invoked as sh. DES -- Dag-Erling Smørgrav - des@FreeBSD.orghome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86fr4g1xqq.fsf>
