Linux #! incompatibility?

Matthias Andree matthias.andree at gmx.de
Wed Dec 4 12:36:09 CET 2002


Hi,

I need your help reviewing compatibility.

Could you please save this script as try.pl:
#!/bin/sh -- # -*- perl -*- -T
eval 'exec perl -wTS $0 ${1+"$@"}'
  if 0;·

print "Hello there.\n";

Make it executable: chmod 755 try.pl

And run it on each distinct OS kernel version that you have please:

./try.pl

It SHOULD print "Hello there.", and that works on FreeBSD 4.7 and
Solaris 8, but not on my Linux 2.4.19/2.4.20 machines.

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.

Thanks in advance,

-- 
Matthias Andree




More information about the bogofilter-dev mailing list