From: Elia Pinto Date: Tue, 22 Dec 2015 15:27:52 +0000 (+0100) Subject: t/t5301-sliding-window.sh: use the $( ... ) construct for command substitution X-Git-Tag: v2.8.0-rc0~103^2~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=046dec74afe7a4bc2848b8cf73e3c4751382ef8e;p=thirdparty%2Fgit.git t/t5301-sliding-window.sh: use the $( ... ) construct for command substitution The Git CodingGuidelines prefer the $(...) construct for command substitution instead of using the backquotes `...`. The backquoted form is the traditional method for command substitution, and is supported by POSIX. However, all but the simplest uses become complicated quickly. In particular, embedded command substitutions and/or the use of double quotes require careful escaping with the backslash character. The patch was generated by: for _f in $(find . -name "*.sh") do perl -i -pe 'BEGIN{undef $/;} s/`(.+?)`/\$(\1)/smg' "${_f}" done and then carefully proof-read. Signed-off-by: Elia Pinto Signed-off-by: Junio C Hamano --- diff --git a/t/t5301-sliding-window.sh b/t/t5301-sliding-window.sh index 2fc5af6007..cae8c2e882 100755 --- a/t/t5301-sliding-window.sh +++ b/t/t5301-sliding-window.sh @@ -16,12 +16,12 @@ test_expect_success \ git update-index --add $i || return 1 done && echo d >d && cat c >>d && git update-index --add d && - tree=`git write-tree` && - commit1=`git commit-tree $tree