Expand description
Static expansion resolution: turns $HOME, $'hello', $((1+1)), {a,b}
into concrete strings using rable’s AST and the host environment.
The resolved command is then re-classified through the full analyzer pipeline, so the variable’s content (not its name) determines the verdict.
Structs§
- EnvLookup
- Production env-based lookup. Reads
std::env::varfor any variable name. - Resolved
Args - Outcome of resolving a full argument list.
Enums§
- Word
Resolution - Result of resolving a single word.
Traits§
- VarLookup
- Trait for looking up variable values. Allows test injection without touching the real process environment.
Functions§
- resolve_
command_ args - Resolve all words in a command’s
wordsslice. - resolve_
word - Attempt to resolve a single word node into literal text (or multiple words).
- shell_
join - Join resolved args into a single shell-safe command string.
- shell_
join_ arg - Quote an argument for inclusion in a re-parsable shell command.