lkml.org 
[lkml]   [1999]   [Mar]   [23]   [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
Hi!

> > > But script written under different OS will work under linux without
> > > change.
> > It won't unless you have root privileges to tweak the translation
> > table used by your patch.
>
> Yes. :-(
> .. and not: translation table is ordinary directory. (but probably
> only root should have write access to it).
>
> Note that this patch is not very usefull but it is also very thin
> in terms of memory usage (and doesn't affect speed).

You want people to write
#!perl

instead of

#!/path/perl

. Ok. Make them write

#!/etc/shells/perl

instead, and make sure /etc/shells contains right symlinks. No kernel
modification needed.

Or just make sure everybody has perl installed in /usr/bin or at least
has /usr/bin/perl -> /real/location/of/perl. [Right way, IMO]

Pavel
--
I'm really pavel@atrey.karlin.mff.cuni.cz. Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

-
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.063 / U:0.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site