From: Matthieu Moy Date: Tue, 04 Jan 2011 22:28:58 GMT Subject: Re: [PATCH v2] Fix false positives in t3404 due to SHELL=/bin/false Message-ID: In-Reply-To: <982E526FA742C94E9AC26DA766FD07090A3399@NYCMBX3.winmail.deshaw.com> "Vallon, Justin" writes: > How was SHELL=/bin/false causing problems? Is git using $SHELL? The explanation is in the comment right above the modification in the patch. "user's shell" can be read as "$SHELL": > --- a/t/t3404-rebase-interactive.sh > +++ b/t/t3404-rebase-interactive.sh > @@ -71,8 +71,9 @@ test_expect_success 'setup' ' > # "exec" commands are ran with the user shell by default, but this may > # be non-POSIX. For example, if SHELL=zsh then ">file" doesn't work > # to create a file. Unseting SHELL avoids such non-portable behavior > -# in tests. > +# in tests. It must be exported for it to take effect where needed. > SHELL= > +export SHELL (my bad, I wrote this SHELL= without exporting it. Since bash re-exports already exported variables when they are assigned, and my /bin/sh points to bash, I didn't notice) -- Matthieu Moy http://www-verimag.imag.fr/~moy/