Johannes Sixt <j6t@xxxxxxxx> writes: >> + test_when_finished "git -C super reset --hard HEAD^" && >> + >> + write_script must_not_run.sh <<-EOF && >> + >$TEST_DIRECTORY/bad >> + EOF > > I am pretty confident that this does not test what you intend to > test. Notice that $TEST_DIRECTORY is expanded when the script is > written. But that path contains a blank, and we have something like > this in the test script: > > #!/bin/sh > >/the/build/directory/t/trash directory.t7406/bad Nicely explained. Thanks.