diff options
author | Elia Pinto <gitter.spiros@gmail.com> | 2016-01-07 16:51:47 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-01-08 00:58:29 +0300 |
commit | 36b4697fdcc1acbe3cda7d67f6f371ebe9d4f018 (patch) | |
tree | 3dc9e8d7c5621495a14709bae6099aef4410b7bd /t/t7003-filter-branch.sh | |
parent | 7b8c0b53c320b03cb641f4e4c7b12049a36bd84e (diff) |
t/t7001-mv.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>
Diffstat (limited to 't/t7003-filter-branch.sh')
0 files changed, 0 insertions, 0 deletions