Messages in this thread | | | Date | Sun, 21 Mar 1999 15:47:13 +0100 (CET) | 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/
| |