From owner-freebsd-arch@FreeBSD.ORG Fri Jun 10 08:06:58 2005 Return-Path: X-Original-To: freebsd-arch@FreeBSD.org Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6675B16A41C; Fri, 10 Jun 2005 08:06:58 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id E566643D49; Fri, 10 Jun 2005 08:06:57 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id A2B9511B9F; Fri, 10 Jun 2005 10:11:50 +0200 (CEST) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 63143-03; Fri, 10 Jun 2005 10:11:43 +0200 (CEST) Received: from [192.168.20.108] (ALagny-106-1-4-61.w80-14.abo.wanadoo.fr [80.14.230.61]) by smtp.xbsd.org (Postfix) with ESMTP id E7DAB11BAB; Fri, 10 Jun 2005 10:11:42 +0200 (CEST) In-Reply-To: <20050610062431.GA78875@isis.sigpipe.cz> References: <200506090027.j590R2t0070899@repoman.freebsd.org> <20050609003619.GA10578@xor.obsecurity.org> <20050609100815.GB16677@over-yonder.net> <20050609160316.GC16677@over-yonder.net> <20050610062431.GA78875@isis.sigpipe.cz> Mime-Version: 1.0 (Apple Message framework v730) X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Florent Thoumie Date: Fri, 10 Jun 2005 10:06:46 +0200 To: Roman Neuhauser X-Mailer: Apple Mail (2.730) X-Virus-Scanned: amavisd-new at xbsd.org Cc: freebsd-arch@FreeBSD.org, "Matthew D. Fuller" , freebsd-ports@FreeBSD.org, Garance A Drosehn , Kris Kennaway Subject: Re: Bug in #! processing - "pear broken on current" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2005 08:06:58 -0000 On Jun 10, 2005, at 8:24 AM, Roman Neuhauser wrote: > # gad@FreeBSD.org / 2005-06-09 12:37:20 -0400: > >> [moved over from the thread: >> Re: cvs commit: src/sys/kern imgact_shell.c >> on the cvs-src mailing list...] >> >> At 11:03 AM -0500 6/9/05, Matthew D. Fuller wrote: >> >>> >>> Well, I dunno what part of it is giving troubles (and I haven't seen >>> it myself, since I'm still on RELENG_5 for the moment; just >>> keeping my >>> eyes open). It doesn't seem like a terribly esoteric line though: >>> >>> #!/usr/local/bin/php -n -q -dsafe_mode=0 -doutput_buffering=1 >>> >> >> It is very likely that the problem which is being seen with this >> script is due to the change in parsing I committed on May 28th. >> Before the change, php would have been started up with: >> >> [0] -> /usr/local/bin/php >> [1] -> -n >> [2] -> -q >> [3] -> -dsafe_mode=0 >> [4] -> -doutput_buffering=1 >> [5] -> /usr/local/bin/name-of-script >> [6...] -> parameters specified by user >> >> and now php is being started with: >> >> [0] -> /usr/local/bin/php >> [1] -> -n -q -dsafe_mode=0 -doutput_buffering=1 >> [2] -> /usr/local/bin/name-of-script >> [3...] -> parameters specified by user >> >> Assuming 'php' does not know what to do when all those options are >> glommed together in a single argument, then the above script would >> not work right on any other operating systems either. The change >> I made on the 28th gets FreeBSD to work more like other OS's when >> it comes to parsing that #!-line in scripts. >> > > The pear people have hacked around the other OS's limitations. > > This change makes FreeBSD lose one small but fine competitive > advantage over other unix-like systems. Pity. FreeBSD needed special handling, no it doesn't anymore. I'm not sure that's losing a *competitive* advantage. -- Florent Thoumie flz@xbsd.org