1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! 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.
/// The common [`Shell`] trait implemented by every shell.
/// The shared shell execution core.
/// Word expansion in the session.
/// The Bash shell implementation.
/// The Zsh shell implementation.
/// The PowerShell shell implementation (Windows).
/// The cmd shell implementation (Windows Command Prompt).
/// The machinery Windows shells share (path handling, external execution,
/// redirect I/O).
/// The maximum number of history entries any shell retains.
///
/// One limit for every shell: Bash and Zsh share the execution core's
/// list, while PowerShell and cmd each keep their own. The cap is a single
/// fact.
pub const HISTORY_LIMIT: usize = 1000;
pub use crateShell;