closing stdio breaks M2
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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