Skip to main content

Module shell

Module shell 

Source
Expand description

The common Shell trait implemented by every shell. The Shell trait: the interface every shell implementation exposes.

The Shell layer is a command language plus execution coordination. Concrete shells โ€” Bash and Zsh on Unix, PowerShell and cmd on Windows โ€” differ in their language flavor, prompt style, and builtins, but the application drives them through this trait, so a VM boots into whichever shell its OS declares (or the user selects with --shell).

The trait is deliberately OS-agnostic: shells may sit on a Unix OS (Bash, Zsh) or on Windows (PowerShell, Cmd), so the application (changing from Zsh โ†’ Bash changes shell behavior while preserving OS state) treats them uniformly.

Traitsยง

Shell
A shell implementation.