diff options
| author | Eric Sunshine <sunshine@sunshineco.com> | 2024-07-27 01:35:06 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-07-26 22:49:40 -0700 |
| commit | 5e91056a1b0d38c6b2149c2c3a72198720a1867f (patch) | |
| tree | 6683015750079806bca789923002719f1f72b6dc /commit.c | |
| parent | t3430: drop unnecessary one-shot "VAR=val shell-func" invocation (diff) | |
| download | git-5e91056a1b0d38c6b2149c2c3a72198720a1867f.tar.gz git-5e91056a1b0d38c6b2149c2c3a72198720a1867f.zip | |
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>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
