Skip to content

Conversation

@sauclovian-g
Copy link
Contributor

Closes #2751.

(That is, they should be a scope nested inside the scope/context where
they're called, and not run in that scope directly.)

Add a couple more tests. Document in Value.hs why builtins don't get
an environment closed in with them.

Closes #2751.
Switch test2242_2243 to use test-and-diff.sh.

While working on the previous changes I became concerned about whether
failures would actually be detected; the answer proves to be no.
Errors that occur in a nested interactive subshell get trapped and
discarded (because that's what the REPL does with errors) and at least
present01 and present03 do not fail overall if the actions in the
nested subshell, which are the point of those tests, fail.

This requires adding some mangy stuff to the output postprocessing so
that the timestamps in the output actually go away; however, we can
get rid of all that once we fix #2090.
@sauclovian-g sauclovian-g force-pushed the 2751-subshell-scoping branch from 748e235 to be8d396 Compare October 27, 2025 23:27
@sauclovian-g
Copy link
Contributor Author

force-push: operator error. Ignore the previous version

@sauclovian-g sauclovian-g merged commit 0bd979d into master Oct 28, 2025
37 checks passed
@sauclovian-g sauclovian-g deleted the 2751-subshell-scoping branch October 28, 2025 01:39
sauclovian-g added a commit that referenced this pull request Oct 30, 2025
Should have been part of #2752. (Oops.)
sauclovian-g added a commit that referenced this pull request Oct 31, 2025
Should have been part of #2752. (Oops.)
sauclovian-g added a commit that referenced this pull request Oct 31, 2025
Should have been part of #2752. (Oops.)
sauclovian-g added a commit that referenced this pull request Nov 3, 2025
Should have been part of #2752. (Oops.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exact scoping semantics of interactive subshells

3 participants