lkml.org 
[lkml]   [1999]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: #!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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.326 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site