Re: share/, etc/, lib/ & al. (fwd)

Horst von Brand (vonbrand@sleipnir.valparaiso.cl)
Sat, 10 Oct 1998 12:39:49 -0400


Ben Elliston <bje@cygnus.com> said:
> Is there any chance that this enhancement could be made to the Linux
> kernel? That is, that the user's PATH is searched for an interpreter when
> an absolute path isn't given?

I'd hope not... it's bad enough if you might by accident get the wrong
ls(1), if you happen to run some kind of "system" script at the mercy of
whatever interpreter happens to be in the user's ~/.bin

[...]

> This is because people don't understand about writing portable perl
> scripts. Start them all off this way:
>
> : #-*- Perl -*-
> eval 'exec perl -w -S $0 ${1+"$@"}' # Portability kludge
> if 0;
>
> Of course, there's a performance penalty, but that's life.
>
> Unix should have been designed so that the kernel would do PATH
> searching and scripts could start with
>
> # perl -w

#!/usr/bin/perl works everywhere, if perl is installed right...

-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616

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