Skip to content

fix: resolve glob handles in POSIX::isatty - #1934

Merged
fglock merged 1 commit into
masterfrom
fix/posix-isatty-glob
Oct 30, 2026
Merged

fglock merged 1 commit into
masterfrom
fix/posix-isatty-glob

Conversation

@fglock

@fglock fglock commented Oct 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • Resolve GLOB arguments in POSIX::isatty with the shared RuntimeScalar.getRuntimeIO() helper instead of casting RuntimeGlob to RuntimeIO.
  • Add a focused regression for *STDIN and *STDOUT and record the compatibility fix in the changelog.

Closes #1932.

Validation

  • prove src/test/resources/unit/posix_isatty_glob.t under system Perl: pass.
  • timeout 60 ./jperl src/test/resources/unit/posix_isatty_glob.t: pass (2 tests).
  • timeout 60 ./jperl --interpreter src/test/resources/unit/posix_isatty_glob.t: pass (2 tests).
  • nice -n 19 make: pass.
  • make check-links and offline Lychee on changed Markdown: pass.

The original CPAN run 20261030-095654-34969 failed on both backends. A fresh timeout 300 ./jcpan -t IO::Pty::Easy rerun passed t/open-close.t, skipped fork-dependent tests, then timed out before the full suite reported; no orphaned test process remained.

Resolve the filehandle carried by a GLOB through RuntimeScalar's shared
RuntimeIO helper instead of casting its RuntimeGlob representation directly.
Add a focused regression for STDIN and STDOUT on both execution backends.

Fixes #1932

Generated with [Codex](https://openai.com/codex)

Co-Authored-By: Codex <codex@openai.com>
@fglock
fglock force-pushed the fix/posix-isatty-glob branch from 1fb4348 to 0b74ff8 Compare October 30, 2026 10:53
@fglock
fglock marked this pull request as ready for review October 30, 2026 11:54
@fglock
fglock merged commit 55c1bfc into master Oct 30, 2026
2 checks passed
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.

POSIX::isatty crashes on glob-backed filehandles

1 participant