KL> The patch that I sent out does (1). That is, whatever interpreter is
KL> given on the #! is given to execve(), and that is stuck into argv[0].
KL> If it is a relative pathname, then that's what it is. I have
KL> personally never seen #! scripts that use a relative pathname.
I've seen such scripts :-) In perl distribution (there are exist scripts
to test perl BEFORE installation; since it's not clear where perl will be
installed in the end there are used just #!../perl :-)
>>> Since in case of "real binary" we doing 1) IMNSHO we should do this in case
>>> of script as well...
P.S. Since code to strip path out was ADDED not just "it was done this way
since so happened and no one really cared" it's interesting to find out who
and why added it....
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/