On Tue, Aug 10, 2010 at 14:12, Johannes Sixt [off-list ref] wrote:
You cannot apply single-command-export if the command is a shell function.
You must rewrite this as:
(
export FAKE_LINES="..." &&
test_must_fail git rebase ....
) &&
Except that's not portable either, it should be:
FAKE_LINES="..." &&
export FAKE_LINES &&
test_must_fail git rebase ...
See the other examples in t3404-rebase-interactive.sh