Skip to main content

Module resolve

Module resolve 

Source
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::var for any variable name.
ResolvedArgs
Outcome of resolving a full argument list.

Enums§

WordResolution
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 words slice.
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.