#variables #shell #substitution #expansion #routine #posix-compliant

shvar

shvar provides a POSIX-compliant shell variable substitution routine

5 releases (breaking)

0.5.0 Sep 9, 2024
0.4.0 Sep 5, 2024
0.3.0 Aug 24, 2024
0.2.0 Aug 19, 2024
0.1.0 Aug 19, 2024

#1506 in Rust patterns


Used in 5 crates

Apache-2.0

35KB
930 lines

shvar

shvar is the SHell VARiable expansion library.

Status

Maintenance track. The library is considered stable and will be put into maintenance mode if unchanged for one year.

Scope

This library provides the quote, split, expand, and rcvar functions.

Warts

  • A string with '{' and '}' characters outside the variable declarations won't parse right now.

Documentation

The latest documentation is always available at docs.rs.

No runtime deps