From owner-freebsd-current@FreeBSD.ORG Thu Sep 30 12:48:37 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 643AA16A4CE for ; Thu, 30 Sep 2004 12:48:37 +0000 (GMT) Received: from dglawrence.com (dsl-230-156.ipns.com [209.210.230.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC1E743D3F for ; Thu, 30 Sep 2004 12:48:36 +0000 (GMT) (envelope-from dg@nexus.dglawrence.com) Received: from nexus.dglawrence.com (localhost [127.0.0.1]) by dglawrence.com (8.12.10/8.12.6) with ESMTP id i8UCmGrW021999; Thu, 30 Sep 2004 05:48:16 -0700 (PDT) (envelope-from dg@nexus.dglawrence.com) Received: (from dg@localhost) by nexus.dglawrence.com (8.12.10/8.12.3/Submit) id i8UCmAnt021986; Thu, 30 Sep 2004 05:48:10 -0700 (PDT) Date: Thu, 30 Sep 2004 05:48:10 -0700 From: "David G. Lawrence" To: S?awek ?ak Message-ID: <20040930124810.GA17792@nexus.dglawrence.com> References: <861xgm5ltz.fsf@thirst.unx.era.pl> <20040928194853.GT2493@submonkey.net> <86k6ud2t6t.fsf@thirst.unx.era.pl> <20040929131136.GA2493@submonkey.net> <415AB9BF.1070003@gamersimpact.com> <86is9wx8qp.fsf@thirst.unx.era.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86is9wx8qp.fsf@thirst.unx.era.pl> cc: Ryan Sommers cc: Ceri Davies cc: freebsd-current@freebsd.org Subject: Re: Bug in #! processing X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 12:48:37 -0000 > What circular reference? Could you elaborate? The algorithm goes like this: > > 1. skip all space till #! The #! is required to be in the first two bytes of the file, so there can't be any spaces before it. I wrote the code you guys are talking about, although I had nothing to do with the commit in rev 1.21. I don't have an opinion on that other than it's been this way in FreeBSD for a long time and I share Ceri's concern that changing it will affect some people. -DG David G. Lawrence President Download Technologies, Inc. - http://www.downloadtech.com - (866) 399 8500 TeraSolutions, Inc. - http://www.terasolutions.com - (888) 346 7175 The FreeBSD Project - http://www.freebsd.org Pave the road of life with opportunities.