Messages in this thread | | | Date | Sun, 21 Mar 1999 16:35:36 +0100 | From | Martin Mares <> | Subject | Re: #!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/
| |