From: Jarkko Hietaniemi Date: Sat, 27 Apr 2002 00:52:30 +0000 (+0000) Subject: NetBSD and OpenBSD cannot do comments at #! line X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4e508696a2c94d9a4c3d030a184a29b6631d2cc2;p=p5sagit%2Fp5-mst-13.2.git NetBSD and OpenBSD cannot do comments at #! line (or long #! lines?) p4raw-id: //depot/perl@16206 --- diff --git a/t/japh/abigail.t b/t/japh/abigail.t index 06bba7a..2391073 100644 --- a/t/japh/abigail.t +++ b/t/japh/abigail.t @@ -223,11 +223,11 @@ plan tests => 130; END {unlink_all $progfile} my @programs = (<< ' --', << ' --'); -#!./perl -- # No trailing newline after the last line! +#!./perl BEGIN{$|=$SIG{__WARN__}=sub{$_=$_[0];y-_- -;print/(.)"$/;seek _,-open(_ ,"+<$0"),2;truncate _,tell _;close _;exec$0}}//rekcaH_lreP_rehtona_tsuJ -- -#!./perl -- # Remove trailing newline! +#!./perl BEGIN{$SIG{__WARN__}=sub{$_=pop;y-_- -;print/".*(.)"/; truncate$0,-1+-s$0;exec$0;}}//rekcaH_lreP_rehtona_tsuJ --