Running under OSX/Unix, I like to first test my code with a #! , then compile them with a -x for use. So,
Code: Select all
$ cat foo.lsp #! /usr/bin/env newlisp (println "args -> " (main-args)) (exit) $ ./foo.lsp bob args -> ("newlisp" "./foo.lsp" "bob") $ newlisp -x foo.lsp foo $ ./foo bob args -> ("./foo" "bob")
My question is the obvious one: is there a way I can get around this behavior? Use a condition compile flag? Or is there a better solution than editing the file each time I want to compile it?
Thanks in advance .. mark