2009/1/19 Ben Walsh <ben_w_123@...>:
> Could we change the first element of *posix-argv* please?
> sh, bash, perl and python all put the name of the script in $0, argv or whatever. But sbcl puts the name of the interpreter (eg. "/usr/bin/sbcl") there.
> This is not very useful because a) we often need the name of the script (eg. for pathname, or to get the symlink name), and b) we already know the name of the interpreter because we specified it in the shebang-line.
> We could do this by setting (car *posix-argv*) to script (patch attached). Or something like that.
I like this this. It's a minor incompatible change for --script users,
and invisible to everyone else. Unless there are objections I'll