Some 'grep' invocations were not guarded from interrupting the test prematurely, e.g. when no text was matched.