mirror of
https://github.com/hymkor/lispect.git
synced 2026-09-03 23:57:49 -04:00
Rename variables to ARGV, PROGRAM-NAME, and EXECUTABLE-NAME
This commit is contained in:
@@ -63,9 +63,9 @@ func mains(args []string) error {
|
|||||||
executable = value
|
executable = value
|
||||||
}
|
}
|
||||||
lisp = lisp.Let(gmnlisp.Variables{
|
lisp = lisp.Let(gmnlisp.Variables{
|
||||||
gmnlisp.NewSymbol("args"): 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())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
|
|||||||
Reference in New Issue
Block a user