On Sat, Oct 11, 2008 at 3:38 PM, Nikodemus Siivola
> On Thu, Oct 9, 2008 at 3:46 PM, Nikodemus Siivola
> <nikodemus@......> wrote:
>> I'm probably going to commit the plain --script patch over the weekend
>> (assuming I find time to write docs and tests -- or snarf them from
>> Kevin's patch!), unless there are objections, that is.
> Committed as 184.108.40.206.
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.