]> git.ipfire.org Git - thirdparty/git.git/commit
CodingGuidelines: quote assigned value in 'local var=$val'
authorJunio C Hamano <gitster@pobox.com>
Sat, 6 Apr 2024 00:08:58 +0000 (17:08 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Apr 2024 05:50:05 +0000 (22:50 -0700)
commitbe34b51049d1628d1ba4f17e3c087fd01f15f988
tree6f70d7df5dfc64073b598f131f30ca4c092acd48
parent7e3a9c23d670347454c6b95e3e6448c9d77fbdc4
CodingGuidelines: quote assigned value in 'local var=$val'

Dash bug https://bugs.launchpad.net/ubuntu/+source/dash/+bug/139097
lets the shell erroneously perform field splitting on the expansion
of a command substitution during declaration of a local or an extern
variable.

The explanation was stolen from ebee5580 (parallel-checkout: avoid
dash local bug in tests, 2021-06-06).

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/CodingGuidelines