Linux #! incompatibility?

Emmanuel Seyman seyman at acticiel.com
Wed Dec 4 12:49:36 CET 2002


On Wed, Dec 04, 2002 at 12:36:09PM +0100, Matthias Andree wrote:
> 
> Can anyone run this on Linux 2.0 or 2.2 or HP-UX, IRIX or whatever?
> Please report back with exact OS and kernel version.

On Red Hat 6.2 (kernel 2.2.22), I get:

[seyman at gordon seyman]$ ./try.pl
sh: --: bad option

On Red Hat 7.3 (kernel 2.4.18), I get:

[seyman at munshine seyman]$ ./try.pl
/bin/sh: -- # -*- perl -*- -T: unrecognized option
Usage:  /bin/sh [GNU long option] [option] ...
        /bin/sh [GNU long option] [option] script-file ...
GNU long options:
        --debug
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --rcfile
        --rpm-requires
        --restricted
        --verbose
        --version
        --wordexp
Shell options:
        -irsD or -c command or -O shopt_option          (invocation only)
        -abefhkmnptuvxBCHP or -o option

Emmanuel




More information about the bogofilter-dev mailing list