.... Did you test
your patch. Does it really fix the fact that that the test does not
PASS. ...
Yes, of course. The result was the same when running the test via my
build+check+install script or when running 'make check' interactively
in the
tests/ directory (of the build tree): FAIL without the patch, PASS
with it.
... judging by your output, adding a "n" to the end of the string
will not make it succeed.
The difference is that the test (t7000-scripting) asks a question
ansered by
'n', whereas the example doesn't ask. Thus the "echo n |" is ignored and
has no effect.