Changes for version v0.986.4 - 2026-12-04 (TRIAL RELEASE)

  • API / Behaviour Changes:
    • Remove the "on_exit" feature
    • Remove the undocumented experimental "mock" option
    • Remove the broken legacy object/class run() and spawn() methods
    • Remove the syscmd() function and the log_any option
    • wait_child() no longer succeeds on a bad waitpid() response
  • Bug Fixes:
    • Fix broken test for open failure
    • Report failed or mismatched waitpid() correctly
    • Retry waitpid() when interrupted by a signal.
    • Make spawnsub actually callable.
    • Make subsequent calls to wait_child() return the same as the inital call.
    • Merge all template and call-time env values when using runsub/spawnsub (previously only one key from each was kept).
    • Allow runsub/spawnsub calls with no env option, no options hashref, and no hashref argument leaking into the command.
    • Treat an empty ARRAY input as no input.
    • Avoid corrupting a shared env hash when encoding fails.
    • Allow Sys::Cmd::Process to be loaded without Sys::Cmd.
    • Report cwd save/restore failures instead of leaving the process in the wrong directory.
    • Avoid an uninitialized warning for invalid _ret() values.
    • Write run() input from the select loop to avoid deadlocks with commands that produce output while reading input.
  • Improvements:
    • New tests for runsub and spawnsub.
    • Split the test suite into focused files with shared helpers, adding unit tests for construction, process status handling, logging and non-UTF-8 locales.
    • Add regression tests for environment, input and cwd handling.
    • Add an author-only coverage threshold check.
    • Log normal start and stop events with Log::Any (abnormal events were already logged).
    • Documentation overhaul.
  • Packaging/Dependencies:
    • Declare runtime Cwd, File::Spec and IO::Select dependencies.
    • Remove the unused File::chdir dependency.
    • Add author dependencies for coverage and POD checks.
    • Fix the repository URL in Makefile.PL.

Modules

Run a system command or spawn a process
process interaction object for Sys::Cmd

Examples