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

2014-03-19 Thread Junio C Hamano
David Tran writes: > Originally, we would use "VAR=VAL command" to execute a test command with > environment variable(s) only for that command. This does not work for commands > that are shell functions (most notably test functions like "test_must_fail"); > the result of the assignment is retaine

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

2014-03-18 Thread Eric Sunshine
On Tue, Mar 18, 2014 at 2:54 PM, David Tran wrote: > Originally, we would use "VAR=VAL command" to execute a test command with > environment variable(s) only for that command. This does not work for commands > that are shell functions (most notably test functions like "test_must_fail"); > the resu

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

2014-03-18 Thread David Tran
Originally, we would use "VAR=VAL command" to execute a test command with environment variable(s) only for that command. This does not work for commands that are shell functions (most notably test functions like "test_must_fail"); the result of the assignment is retained and affects later commands.