Re: "What is the !@#$ pathname of Perl on *this* machine?"

Marc Lehmann (mlehmann@hildesheim.sgh-net.de)
Sat, 22 Feb 1997 23:26:43 +0100 (MET)


>>that begin with '#?'.
>
>No it doesn't. Any files that start with "#?" are not being exec(2)ed,
>and adding special behaviour to the kernel isn't going to affect what
>any shell does.

??? why aren't they execed?? The "old" way shell scripts were
started was by trying to exec() them, and if that didnt work,
feed it to the shell (libc did this).

EVERY file that you try to start that has the x bit set
will eventually be fed to exec()

>However, there are too many programs that handle "#!" specially that
>aren't going to know to handle "#?" in the same way. Perl, for
>example.

Perl, on the other hand, has a much better way top get around these problems,
so I don't understand the discussion. And for linux (which would be the
only system supporting #?) perl is most often available under /usr/bin/perl,
where perl installs a symlink by default.

---------------------------------------------------------------------

for a pentium-optimizing gcc, look at http://www.goof.com/pcg

-----==-
----==-- _
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / mlehmann@hildesheim.sgh-net.de
-=====/_/_//_/\_,_/ /_/\_\ pcg@goof.com
The choice of a GNU generation