diff options
author | Paul Tan <pyokagan@gmail.com> | 2015-05-18 21:32:51 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-18 10:33:01 -0700 |
commit | c998b381477953361c8bf180871ecd6b57ff94ea (patch) | |
tree | 8640cd2c8f2490d910bd79a71c507ef2ebe470aa /git-cvsserver.perl | |
parent | merge: deprecate 'git merge <message> HEAD <commit>' syntax (diff) | |
download | tgif-c998b381477953361c8bf180871ecd6b57ff94ea.tar.xz |
t5520: prevent field splitting in content comparisons
Many tests in t5520 used the following to test the contents of files:
test `cat file` = expected
or
test $(cat file) = expected
These 2 forms, however, will be affected by field splitting and,
depending on the value of $IFS, may be split into multiple arguments,
making the test fail in mysterious ways.
Replace the above 2 forms with:
test "$(cat file)" = expected
as quoting the command substitution will prevent field splitting.
Signed-off-by: Paul Tan <pyokagan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-cvsserver.perl')
0 files changed, 0 insertions, 0 deletions