t/t6032-merge-large-rename.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
Jan 7, 2016 at 14:51 UTC
59f9c6c3cd308342ecf814a2a7636a9395c40e49
1 file changed
+1
-1
t/t6032-merge-large-rename.sh
+1
-1
@@ -20,7 +20,7 @@ test_expect_success 'setup (initial)' '
20
21
make_text() {
22
echo $1: $2
23
- for i in `count 20`; do
23
+ for i in $(count 20); do
24
echo $1: $i
25
done
26
echo $1: $3