lkml.org 
[lkml]   [1999]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject#!perl - alternative path to script interpreters - patch to 2.2

Hi

This patch provides a way to specify alternative path to script interpreters.

Current semantics requires to specify complete path to interpreter program in
the first line of script after #!. It is ok as long scripts are used in the
same system. In different distribution or under different OS specified path is
useless.

It is more elegant to treat word after #! as a name of language and define
directory containing links to script interpreters. This patch allows to
use #!awk, and system can be informed how to find a path for it. If interpreter
is not found on a specified path it is searched in directory defined in
/proc/sys/fs/alt-script-path kernel variable.

This patch also fixes problems with scripts that come from DOS environment
('\r\n' as line delimiter).

URL: http://wizard.ae.krakow.pl/~jb/patches/alt-script-path.patch.gz
STATUS: beta (tested succesfully on 2 systems)
KERNEL: 2.2.3 (other should work too)
COST: speed: none
size: about 300 bytes

Jan Bobrowski
jb@wizard.ae.krakow.pl


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