Documentation
¶
Overview ¶
Package alias implements parse-time alias expansion for go-bash. When `shopt expand_aliases` is on, the runtime calls Expand on each parsed *syntax.File before running it; this walks every *syntax.CallExpr and rewrites the first argument when it matches an alias name.
Expansion is intentionally simple — we re-tokenize the alias body by parsing it as a standalone script and extracting the first simple command's Args. Recursive expansion (where an alias body references another alias) is supported via a second pass with a visited-set guard, matching bash's anti-loop semantics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.