lkml.org 
[lkml]   [1999]   [Mar]   [21]   [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
Hello,

> 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.

> Script may specify /opt/new-language/bin/sth while your comp may not
> have /opt directory tree at all - its ugly. This patch provides
> centralized way to redirect interpreter execution.

Then just edit the script to make it point at the right interpreter.

> OK. But you have to change script.

Which is exactly what should be done. The kernel is not the right
place to handle DOS crap at.

> More: you have to know nature of a
> problem (to remove '\r') - kernel will not tell you what is going wrong.

If you transfer files between DOS and Linux, you definitely need
to know the CR+LF problem -- if it won't bite you when executing a script,
it will bite you somewhere else anyway.

Have a nice fortnight
--
Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"All computers run at the same speed... with the power off."

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