Description
Captures command output from Ruby in a way that works across MRI and JRuby. It is useful for tools that need to run external programs and collect stdout, stderr, and status consistently.
Command execution is security-sensitive. Avoid building commands from untrusted input, set timeouts, and treat environment variables and working directories as part of the trust boundary.