diff options
author | Elia Pinto <gitter.spiros@gmail.com> | 2016-01-12 11:49:38 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-01-12 11:49:49 -0800 |
commit | ec1b763d05bb03d8741c1363d7acf4ccb7153f6d (patch) | |
tree | 7bffd5ccb8deee748d07f7f66282bf3dba33cc60 /builtin/diff-files.c | |
parent | t9501-gitweb-standalone-http-status.sh: use the $( ... ) construct for comman... (diff) | |
download | tgif-ec1b763d05bb03d8741c1363d7acf4ccb7153f6d.tar.xz |
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>
Diffstat (limited to 'builtin/diff-files.c')
0 files changed, 0 insertions, 0 deletions