]> git.ipfire.org Git - thirdparty/git.git/commit
t/t9001-send-email.sh: use the $( ... ) construct for command substitution
authorElia Pinto <gitter.spiros@gmail.com>
Mon, 11 Jan 2016 13:34:09 +0000 (14:34 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Jan 2016 19:47:05 +0000 (11:47 -0800)
commitbdf20f5edda12d5b02e7873ca9dfa831eafdd3cd
tree75494db7855c4b9970fb8b5ab99112674dad0a59
parent844116d92f822feda5785a2577b232a746ae5307
t/t9001-send-email.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>
t/t9001-send-email.sh