t/t5304-prune.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 <gitter.spiros@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Elia Pinto committed Dec 23, 2015 at 14:45 UTC 213ea1161cf68963807ec7b254c63ddfc9c96838
1 file changed +1 -1
t/t5304-prune.sh
+1 -1
@@ -266,7 +266,7 @@ EOF
266 '
267
268 test_expect_success 'prune .git/shallow' '
269 - SHA1=`echo hi|git commit-tree HEAD^{tree}` &&
269 + SHA1=$(echo hi|git commit-tree HEAD^{tree}) &&
270 echo $SHA1 >.git/shallow &&
271 git prune --dry-run >out &&
272 grep $SHA1 .git/shallow &&