git-ls-remote.sh: use the $( ... ) construct for command substitution
authorElia Pinto <redacted>
Wed, 16 Apr 2014 17:29:51 +0000 (10:29 -0700)
committerJunio C Hamano <redacted>
Thu, 17 Apr 2014 18:14:59 +0000 (11:14 -0700)
commit1b3cddd28834ef7c32f2049054c9179c68a381f6
tree3ed7c159815341df394800da443e9b81ad39e228
parent3e867415170ed73511291fb2dd47bac3c4d51f3a
git-ls-remote.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
   sed -i 's@`\(.*\)`@$(\1)@g' ${_f}
done

and then carefully proof-read.

Signed-off-by: Elia Pinto <redacted>
Reviewed-by: Matthieu Moy <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/examples/git-ls-remote.sh
git clone https://git.99rst.org/PROJECT