t9901-git-web--browse.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 12, 2016 at 11:49 UTC ec1b763d05bb03d8741c1363d7acf4ccb7153f6d
1 file changed +1 -1
t/t9901-git-web--browse.sh
+1 -1
@@ -43,7 +43,7 @@ test_expect_success \
43 echo fake: "$@"
44 EOF
45 chmod +x "fake browser" &&
46 - git config browser.w3m.path "`pwd`/fake browser" &&
46 + git config browser.w3m.path "$(pwd)/fake browser" &&
47 test_web_browse w3m http://example.com/foo
48 '
49