diff options
author | Elia Pinto <gitter.spiros@gmail.com> | 2015-12-22 16:27:44 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-12-28 13:36:22 -0800 |
commit | 8db3294142a6de4f82ea1b9c7a7615ec9c7e30fd (patch) | |
tree | 10291cc4b3a7a618a3a1fc2918b2ef275194bb99 /compat/qsort.c | |
parent | t/t3100-ls-tree-restrict.sh: use the $( ... ) construct for command substitution (diff) | |
download | tgif-8db3294142a6de4f82ea1b9c7a7615ec9c7e30fd.tar.xz |
t/t3101-ls-tree-dirname.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 'compat/qsort.c')
0 files changed, 0 insertions, 0 deletions