Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jun 2005 08:24:31 +0200
From:      Roman Neuhauser <neuhauser@sigpipe.cz>
To:        Garance A Drosehn <gad@FreeBSD.org>
Cc:        Kris Kennaway <kris@obsecurity.org>, freebsd-ports@FreeBSD.org, "Matthew D. Fuller" <fullermd@over-yonder.net>, freebsd-arch@FreeBSD.org
Subject:   Re: Bug in #! processing - "pear broken on current"
Message-ID:  <20050610062431.GA78875@isis.sigpipe.cz>
In-Reply-To: <p06210259bece1ae26f44@[128.113.24.47]>
References:  <200506090027.j590R2t0070899@repoman.freebsd.org> <20050609003619.GA10578@xor.obsecurity.org> <20050609100815.GB16677@over-yonder.net> <p06210258bece1422da20@[128.113.24.47]> <20050609160316.GC16677@over-yonder.net> <p06210259bece1ae26f44@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
# 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.

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050610062431.GA78875>