diff options
| author | Elia Pinto <gitter.spiros@gmail.com> | 2016-01-04 10:10:46 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2016-01-04 13:44:17 -0800 |
| commit | 752f505cf3e993003a854ecb1b6c08af8e40450e (patch) | |
| tree | 2b741bf9329911d5429e74c95f8803a6695c72d1 /t/t5550-http-fetch-dumb.sh | |
| parent | e3a75be3fe225429e3ee6a8f2ad865dc9f3c69e9 (diff) | |
| download | git-752f505cf3e993003a854ecb1b6c08af8e40450e.tar.gz | |
t/t5538-push-shallow.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/t5550-http-fetch-dumb.sh')
0 files changed, 0 insertions, 0 deletions
