Git fork

t4034: fix use of one-shot variable assignment with shell function

The behavior of a one-shot environment variable assignment of the form
"VAR=val cmd" is unspecified according to POSIX when "cmd" is a shell
function. Indeed the behavior differs between shell implementations and
even different versions of the same shell, thus should be avoided.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Eric Sunshine and committed by
Junio C Hamano
5e91056a a26d7004

+1 -1
+1 -1
t/t4034-diff-words.sh
··· 70 70 word_diff --color-words 71 71 ' 72 72 test_expect_success "diff driver '$lang' in Islandic" ' 73 - LANG=is_IS.UTF-8 LANGUAGE=is LC_ALL="$is_IS_locale" \ 73 + test_env LANG=is_IS.UTF-8 LANGUAGE=is LC_ALL="$is_IS_locale" \ 74 74 word_diff --color-words 75 75 ' 76 76 }