New Function for Shell Calls
summary
A new system function ⎕SHELL appears in Dyalog 20.0 that replaces monadic ⎕SH/⎕CMD with a configurable runner: it returns a five‑element nested result including stream IDs and data, exit reason (exit code, signal, timeout or interrupt) and PID for cleanup, and it collects multiple streams (stdout, stderr, etc.) with targets like files, tied arrays, or callbacks. Variant options set working directory, environment, shell, timeout and signal for termination; a token mechanism enables interactive input and nonblocking threaded runs demonstrated with Python.
AI-written summary · about
