Anyway , cut a long story short, this is the fixed script, thanks to
help from Alexander & Mike - sorry for misdirecting some reply emails
to the list .
Primarily, an un-quoted symbol should have been quoted, and
a '(list ...)' should have been a '(cons ...)' .
These are the sort of problems I'd
Much better (final) version.
L_RT.l
Description: Binary data
Wow ! I've just figured out the best execve(2) Shebang line for pil scripts:
$ cat myscript.l
#!/usr/bin/pil -script (car (nth (argv) 1)) (nth (argv) 2)
(let (ars (car (rest)))
(prinl (car (nth (file) 2)) " ARGS: " (sym ars))
)
(bye)
$ chmod +x myscript.l
$ ./myscript.l
myscript.l A