Re: git: 566cc005812b - main - safe_set treat ':' and '#' differently
- In reply to: Dag-Erling_Smørgrav : "Re: git: 566cc005812b - main - safe_set treat ':' and '#' differently"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 27 Apr 2026 10:52:29 UTC
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.org