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:
@@ -3,6 +3,9 @@
|
||||
-- This file serves as a design playground: it documents how bare-word
|
||||
-- commands should behave alongside Lua in both scripts and the REPL.
|
||||
|
||||
print "Skipping interactive commands - not implemented yet"
|
||||
os.exit(0) --[[
|
||||
|
||||
print "testing interactive commands"
|
||||
|
||||
-- ===== RESULT TABLE STRUCTURE =====
|
||||
@@ -359,3 +362,5 @@ do
|
||||
end
|
||||
|
||||
print "OK"
|
||||
|
||||
--]]
|
||||
Reference in New Issue
Block a user