From: Junio C Hamano Date: Sun, 07 Feb 2021 03:33:14 GMT Subject: Re: [PATCH v3 0/3] Unify trailers formatting logic for pretty.c and ref-filter.c Message-ID: In-Reply-To: "Hariom Verma via GitGitGadget" writes: > @@ t/t6300-for-each-ref.sh: test_expect_success '%(trailers:only) and %(trailers:un > + option="$2" > + expect="$3" > + test_expect_success "$title" ' > -+ echo $expect >expect && > ++ printf "$expect\n" >expect && Are we sure that "$expect" would not ever have any '%' in it, to confuse printf? To be future-proof and safe, it would be prudent to instead use printf "%s\n" "$expect" to make sure that whatever is passed in $3 gets output LITERALLY. The callers need to adopt the change I gave you in the review of the previous round so that they do not assume backslash-en will by changed to LF by somebody---instead if they mean LF, they just say LF. Thanks.