5 if ($^O eq 'MSWin32') {
6 # XXX the system tests could be written to use ./perl and so work on Win32
7 print "1..0 # Skip: shh, win32\n";
14 print "not ok 1\n" if system "echo ok \\1"; # shell interpreted
17 print "ok 1 # skipped: bug/feature of pdksh\n"; # shell interpreted
19 print "not ok 2\n" if system "echo ok 2"; # split and directly called
20 print "not ok 3\n" if system "echo", "ok", "3"; # directly called
22 # these should probably be rewritten to match the examples in perlfunc.pod
23 if (system "true") {print "not ok 4\n";} else {print "ok 4\n";}
25 if ((system "/bin/sh -c 'exit 1'") != 256) { print "not "; }
28 $rc = system "lskdfj";
29 if ($rc == 255 << 8 or $rc == -1 and ($! == 2 or $! =~ /\bno\b.*\bfile/i))
30 {print "ok 6\n";} else {print "not ok 6\n";}
32 unless (exec "lskdjfalksdjfdjfkls") {print "ok 7\n";} else {print "not ok 7\n";}