Cross Reference: shbang_misparse
xref
: /
osnet-11
/
usr
/
src
/
cmd
/
perl
/
5.8.4
/
distrib
/
t
/
lib
/
sample-tests
/
shbang_misparse
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
#!/
usr
/
bin
/
perl-latest
# The above #! line was misparsed as having a -t.
# Pre-5.8 this will simply cause perl to choke, since there was no -t.
# Post-5.8 taint warnings will mistakenly be on.
print
"1..2\n"
;
print
"ok 1\n"
;
my
$warning
=
''
;
$SIG
{
__WARN__
} =
sub
{
$warning
.= $_[
0
] };
eval
(
"#"
.
substr
($
0
,
0
,
0
)
)
;
print
$warning
?
"not ok 2\n"
:
"ok 2\n"
;