}
my $test = 1;
-print "1..8\n";
+print "1..12\n";
print "ok 1\n";
open(DUPOUT,">&STDOUT");
# KNOWN BUG system() does not honor STDOUT redirections on VMS.
if( $^O eq 'VMS' ) {
- print "not ok $_ # TODO system() not honoring STDOUT redirect on VMS\n"
+ print "not ok $_ # TODO system() not honoring STDOUT redirect on VMS\n"
for 6..7;
}
else {
print STDOUT "ok 8\n";
+open(F,">&",1) or die "Cannot dup to numeric 1:$!";
+print F "ok 9\n";
+close(F);
+
+open(F,">&",'1') or die "Cannot dup to string '1':$!";
+print F "ok 10\n";
+close(F);
+
+
+open(F,">&=",1) or die "Cannot dup to numeric 1:$!";
+print F "ok 11\n";
+close(F);
+
+open(F,">&=",'1') or die "Cannot dup to string '1':$!";
+print F "ok 12\n";
+close(F);
+
+