t: local VAR="VAL" (quote ${magic-reference})
commite97f4a6d94103c43a08c864c6ab63e6086812998
authorJunio C Hamano <gitster@pobox.com>
Sat, 6 Apr 2024 00:09:01 +0000 (5 17:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Apr 2024 05:50:11 +0000 (5 22:50 -0700)
treef586cde723485ec16ff4731955611a73d61b3efc
parent7f9f230b7fcc1bfeb352216930f704075bca713d
t: local VAR="VAL" (quote ${magic-reference})

Future-proof test scripts that do

local VAR=VAL

without quoting VAL (which is OK in POSIX but broken in some shells)
that is ${magic-"reference to a parameter"}.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-functions.sh