Skip to main content

Crate yash_semantics

Crate yash_semantics 

Source
Expand description

Semantics of the shell language.

This crate defines the standard semantics for the shell language. The core of the semantics is command execution and word expansion. A command can be executed by calling Command::execute. A word can be expanded by using functions and traits defined in expansion.

The read_eval_loop reads, parses, and executes commands from an input. It is a utility for running a shell script.

§Deprecation

The re-export of yash_env::semantics::command::search as command_search is now deprecated. Please use command::search instead.

Re-exports§

pub use yash_env::semantics::*;

Modules§

assign
Assignment.
command
Command execution
expansion
Word expansion.
job
Utilities for job control
redir
Redirection semantics.
trap
Handling traps.
xtrace
Helper items for printing expansion results

Traits§

Handle
Error handler.
Runtime
Runtime environment for executing shell commands

Functions§

interactive_read_eval_loop
read_eval_loop for interactive shells
read_eval_loop
Reads input, parses it, and executes commands in a loop.