mirror of
https://github.com/hymkor/lispect.git
synced 2026-09-06 00:57:23 -04:00
Add *argv*, *program-name*, etc. as replacements for old global variable names
This commit is contained in:
@@ -67,8 +67,11 @@ func RunString(script string, args []string) error {
|
||||
}
|
||||
lisp = lisp.Let(gmnlisp.Variables{
|
||||
gmnlisp.NewSymbol("ARGV"): gmnlisp.List(posixArgv...),
|
||||
gmnlisp.NewSymbol("*argv*"): gmnlisp.List(posixArgv...),
|
||||
gmnlisp.NewSymbol("PROGRAM-NAME"): gmnlisp.String(args[0]),
|
||||
gmnlisp.NewSymbol("*program-name*"): gmnlisp.String(args[0]),
|
||||
gmnlisp.NewSymbol("EXECUTABLE-NAME"): gmnlisp.String(executable),
|
||||
gmnlisp.NewSymbol("*executable-name*"): gmnlisp.String(executable),
|
||||
})
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
|
||||
Reference in New Issue
Block a user