Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ERR_RETURN ignored in 'if' in a source'd file [FIXED]
On Wed, May 14, 2025 at 9:53 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> The test runs inside a «$ZTST_testdir/../Src/zsh -f» because, otherwise,
> the ERR_RETURN would cause early returns not only in the test case's
> code, but also in the test harness code executing the test code¹. (Yes,
> it's rather odd that it's possible for code being tested to affect the
> test harness' control flow this way.)
Is a full new shell needed for this specific instance, or would a
subshell suffice?
Maybe it's possible to add a flag (like the xfail flag) to the test
definition to say "put this in it's own shell"? That would make it
easier than having to explicitly reference $ZTST_testdir etc. (There
are a few exceptions that would still require that reference, I
think.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author