Re: Bug in #! processing

From: Pawel Jakub Dawidek <pjd_at_FreeBSD.org>
Date: Fri, 1 Oct 2004 20:34:41 +0200
On Thu, Sep 30, 2004 at 03:30:26PM +0200, Sławek Żak wrote:
+> >> I like the bahavior of FreeBSD besides special
+> >>     treatment of # on the first line after #!. Allowing for comments on the
+> >>     first line is a strange excuse. Have you ever seen a script commenting on
+> >>     the interpreter execution or had a need to do so?
+> >
+> > No, but since this has been possible in FreeBSD for over 4.5 years, you
+> > can guarantee that someone is using it.
+> 
+>     What do you think of sysctl named say kern.exec_hash_compat (set to 1 by
+>     default) or kernel option (also set to old behavior) to `fix' the situation?

Adding sysctl to control this behaviour is the best we can get, IMHO.
I can commit this, with default value which keeps the current behvaiour,
but I don't like this name. We should find a name which starts at 'compat.'.
Any suggestions? compat.unix.exec_hash?

-- 
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd_at_FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!

Received on Fri Oct 01 2004 - 16:34:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:15 UTC