Messages in this thread | | | Date | Sun, 21 Mar 1999 16:57:41 +0000 (GMT) | From | Riley Williams <> | Subject | Re: #!perl - alternative path to script interpreters - patch to 2.2 |
| |
Hi Ben.
> Perhaps for the sake of portability the best way to approach it > would be:
> #!/usr/local/bin/perl5 > #!perl > <code>
> On linux systems with this support, /usr/local/bin/perl5 would > be checked first, if it isn't there then it looks for relative > interpreters for `perl'. This would make your hack more backward > compatible.
Probably a better solution would be a patch which says "First try $CMD as given. If that doesn't work, search for `basename $CMD` in some standard set of directories...
Best wishes from Riley.
+----------------------------------------------------------------------+ | There is something frustrating about the quality and speed of Linux | | development, ie., the quality is too high and the speed is too high, | | in other words, I can implement this XXXX feature, but I bet someone | | else has already done so and is just about to release their patch. | +----------------------------------------------------------------------+
- 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/
| |