Bug in #! processing - "pear broken on current"

Roman Neuhauser neuhauser at sigpipe.cz
Mon Jun 13 09:08:11 GMT 2005

# des at des.no / 2005-06-10 14:19:09 +0200:
> Roman Neuhauser <neuhauser at sigpipe.cz> writes:
> > That simply shows that all these *Linux* distros don't handle
> > shebang lines well.
> Actually, it shows that they handle shebang lines *correctly*, and
> that we don't unilaterally break Pear by aligning ourselves with them.

    These two were identical before:

    #!/usr/local/bin/php -n -q -dsafe_mode=0 -doutput_buffering=1
    % /usr/local/bin/php -n -q -dsafe_mode=0 -doutput_buffering=1

    These two are identical now:

    #!/usr/local/bin/php -n -q -dsafe_mode=0 -doutput_buffering=1
    % /usr/local/bin/php "-n -q -dsafe_mode=0 -doutput_buffering=1"

    Obviously, "correct" is whatever behavior we declare as such.
    But is the latter actually useful? The Linux distros you shown
    hacking around the shebang parsing limitations (forking another
    shell to achieve the correct parsing) shows just that: Linux distros
    basically avoiding anything above the simplest "#!/bin/sh".

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

More information about the freebsd-ports mailing list