Skip to main content

Crate shell

Crate shell 

Source
Expand description

The Shell layer of the Virtual Computing Engine (VCE).

This crate implements the Shell layer of the architecture: four concrete shells over two shared cores. Bash and Zsh share the execution core (core::ShellCore); PowerShell and cmd share the Windows machinery (windows_core). Each shell owns its own grammar, builtin table, and dialect. Applications drive shells through the shell::Shell trait, so a VM can boot into whichever shell its OS declares.

Re-exports§

pub use crate::shell::Shell;

Modules§

bash
The Bash shell implementation. The Bash shell implementation.
cmd
The cmd shell implementation (Windows Command Prompt). The cmd shell (Windows Command Prompt).
core
The shared shell execution core. The shared shell execution core.
expansion
Word expansion in the session. Word expansion in the session.
powershell
The PowerShell shell implementation (Windows). The PowerShell shell for Windows.
shell
The common Shell trait implemented by every shell. The Shell trait: the interface every shell implementation exposes.
windows_core
The machinery Windows shells share (path handling, external execution, redirect I/O). The shared Windows shell machinery.
zsh
The Zsh shell implementation. The Zsh shell implementation.

Constants§

HISTORY_LIMIT
The maximum number of history entries any shell retains.