#!./perl
-# $RCSfile: term.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:07 $
-
BEGIN {
chdir 't' if -d 't';
}
# check `` processing
-$x = `echo hi there`;
+$x = `$^X -le "print 'hi there'"`;
if ($x eq "hi there\n") {print "ok 2\n";} else {print "not ok 2\n";}
# check $#array
# check <> pseudoliteral
-if ($^O eq 'MacOS') {
- open(try,"Dev:Null") || (die "Can't open /dev/null.");
-} else {
- open(try, "/dev/null") || open(try,"nla0:") || (die "Can't open /dev/null.");
-}
+open(try, "/dev/null") || open(try,"nla0:") || (die "Can't open /dev/null.");
if (<try> eq '') {
print "ok 6\n";