Re: ERR_RETURN ignored in 'if' in a source'd file [FIXED]
Bart Schaefer <[email protected]>
| Newsgroups | gmane.comp.shells.zsh.user |
|---|---|
| Message-ID | <CAH+w=7b=Eam8A=KoyqHg+PbkdGu=ZaoA_8Qh8W=-37AJ85UDNQ@mail.gmail.com> |
On Wed, May 14, 2025 at 9:53 AM Daniel Shahaf <[email protected]> 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.)