Implement $VAR expansion in commands (issue #25)

Extend read_command_body() to detect $NAME and trigger interpolation
using the same fragment-split mechanism as ${expr}. The lexer collects
the identifier into cmd_envvar; the parser's unified parseinterp()
branches on it to emit tostring(getenv(NAME)).
This commit is contained in:
Cormac Shannon
2026-03-18 08:35:46 +00:00
parent 635569961e
commit 42baabde34
7 changed files with 98 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
# 25 — Environment variable expansion in commands
**Status:** open
**Status:** done
## Problem