Messages in this thread | | | Date | Mon, 22 Mar 1999 15:57:34 +1100 (EST) | From | Nathan Hand <> | Subject | Re: #!perl - alternative path to script interpreters - patch to 2.2 |
| |
On Sun, 21 Mar 1999, Tim Smith wrote:
> > Can't the effect of this be accomplished in a completely portable fashion > entirely in user space? > > mkdir /interpreters > cd /interpreters > chmod 755 . > for i in perl awk bash csh sed; do > ln -s `type -path $i` $i > done > > Scripts would then use > > #!/interpreters/perl > > to run perl, etc.
Debian effectively does this via their /etc/alternatives symlink nest. It provides the same "mapping" functionality of the patch completely in user space, runs scripts from other unices, and doesn't modify the kernel. And I don't know about other people but I haven't been bit by an incorrect #! in over a decade. Packages systems like Debian make the problem even more unlikely to occur in the future, at least for the typical user.
- 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/
| |