4 releases (breaking)

0.4.0 Sep 28, 2024
0.3.0 Jul 12, 2024
0.2.0 Jun 9, 2024
0.1.0 Apr 13, 2024

#2571 in Command line utilities


Used in 3 crates

GPL-3.0-or-later

2.5MB
49K 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.

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

Dependencies

~8–19MB
~274K SLoC