Macaulay2 / Macaulay2/M2

closing stdio breaks M2

Open
#4,392 0 comments 0 reactions 0 assignees View on GitHub

@d-torrance is already working on this.

Since Jul 19, 2026.

  • #4480 by @d-torrance — open
Interpreter
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

This happened to me by accident. I feel like it either it should give an error, or stdio should reopen automatically:
```m2
$ M2
Macaulay2, version 1.26.05
Type "help" to see useful commands

i1 : << close
stdio:1:0:(3):[1]: error: at print: expected an output file
stdio:1:0:(3):[1]: error: after print: expected an output file
stdio:2:0:(3):[1]: error: at print: expected an output file
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the Macaulay2 REPL with `<< close`, then inspect the stdio handling reached by that command. Done means the behavior is resolved consistently, either by reporting a clear error or by reopening stdio automatically; an open linked pull request indicates this work is already underway.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.