Overview
Learn about the new ⎕SHELL system function coming in Dyalog version 20.0 through this 21-minute conference presentation from Dyalog '24. Explore improvements to shell call functionality, including configurable options for character encoding, working directories, environment variables, and shell selection. Discover how to collect different output streams, handle exit codes, and manage input/output redirection more effectively. Watch demonstrations comparing ⎕SH versus ⎕SHELL and see practical examples of running Python from the Dyalog session. Understand advanced features like timeout settings, child process signaling, and window mode configurations that address previous limitations in monadic ⎕SH/⎕CMD operations.
Syllabus
A new system function for shell calls
Things we'd like to configure in ⎕SH
⎕SHELL syntax overview
Collecting different output streams
Exit codes from shell calls
Demo ⎕SH vs ⎕SHELL
Character encoding
Variant ⍠ options in ⎕SHELL
Working directory
Environment variables
Choose another shell
Choose exit code behaviour
Timeout
Signal to child process for cleanup
Initial window mode hidden or maximised
Input and output redirection
Demo running python from the session
Summary
Taught by
Dyalog User Meetings