From: Jeff King Date: Tue, 14 Oct 2014 00:46:23 GMT Subject: Re: [PATCH v2 3/3] test-lib.sh: support -x option for shell-tracing Message-ID: <20141014004623.GA22910@peff.net> In-Reply-To: On Mon, Oct 13, 2014 at 04:14:59PM -0700, Junio C Hamano wrote: > We came to more or less the same conclusion. With your $*" fixed, > the test "works" as before, with the same definition of "works", > because without your patch the file ends with EOF and with > your original $*" the file ends with EOF with these > extra appended, which was what made me notice, and with $*" > the file ends with the same EOF as before. Yeah. I think the fact that fixing the test to properly respect EOF required you to later change the line number is a good indication that the test was broken in the first place. :) > I've queued a fix for the original test on ta/config-set and also > amended your $*". Thanks. Note that my patch still technically adds a tab in front of the $*. I can't imagine that would matter, but if we wanted to be extra conservative, we would make it: eval "test ... && set -x $*" with no indentation at all. > Enjoy your dinner ;-) Thanks, I did. :) -Peff