Re: [PATCH v4] tests: use "env" to run commands with temporary env-var settings

2014-03-20 Thread Junio C Hamano
David Tran writes: > Ordinarily, we would say "VAR=VAL command" to execute a tested command with > environment variable(s) set only for that command. This however does not work > if 'command' is a shell function (most notably 'test_must_fail'); the result > of the assignment is retained and affec

[PATCH v4] tests: use "env" to run commands with temporary env-var settings

2014-03-20 Thread David Tran
Ordinarily, we would say "VAR=VAL command" to execute a tested command with environment variable(s) set only for that command. This however does not work if 'command' is a shell function (most notably 'test_must_fail'); the result of the assignment is retained and affects later commands. To avoid