diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-05-23 15:23:56 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-24 15:49:02 -0700 |
commit | 5c63920190b38f4ea92d5b0104d3697a34f5f2b3 (patch) | |
tree | d0622ccd27cfcc8f6c6d51fc37ca3fb9c8c98796 /t/t5515/fetch.br-remote-glob | |
parent | Git 2.9-rc0 (diff) | |
download | tgif-5c63920190b38f4ea92d5b0104d3697a34f5f2b3.tar.xz |
t4204: do not let $name variable clobbered
test_patch_id_file_order shell function uses $name variable to hold
one filename, and calls another shell function calc_patch_id as a
downstream of one pipeline. The called function, however, also uses
the same $name variable. With a shell implementation that runs the
callee in the current shell environment, the caller's $name would
be clobbered by the callee's use of the same variable.
This hasn't been an issue with dash and bash. ksh93 reveals the
breakage in the test script.
Fix it by using a distinct variable name in the callee.
Reported-by: Armin Kunaschik <megabreit@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/fetch.br-remote-glob')
0 files changed, 0 insertions, 0 deletions