Closed stoovon closed 2 years ago
Note that this test case can fail in both TestRunnerRun and TestRunnerRunConfirm, and you've just fixing the latter.
A simpler approach might be to use a static string that's much more likely to be unique, like interp_does_not_exist
. A random number might be more resilient, but it would also make our test runner more complicated, and I don't think it's worth the effort. We just need to avoid short and possibly-defined names like foo
.
Friendly ping @stoovon :)
Thanks! Will take a look
Closing and re-opening under https://github.com/mvdan/sh/pull/821.
Fixes https://github.com/mvdan/sh/issues/738.