1 unstable release

new 0.1.0 Apr 13, 2024

#2914 in Command line utilities


Used in 2 crates

GPL-3.0-or-later

2MB
46K SLoC

Yash-semantics

yash-semantics is a Rust library crate that implements the semantics of the shell command language used in yash.

yash-semantics at crates.io yash-semantics at docs.rs Build status

License

This crate is distributed under GPLv3.


lib.rs:

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.

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

Dependencies

~7–19MB
~254K SLoC