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 committed 2026-03-18 08:35:46 +00:00
1 parent 635569961e
commit 42baabde34
7 files changed
+98 -13

No files matched your search

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