#!./perl

# $RCSfile: term.ntt,v $$Revision: 1.1 $$Date: 1996/10/12 21:06:30 $

print "1..6\n";

# check "" interpretation

$x = "\n";
if ($x lt ' ') {print "ok 1\n";} else {print "not ok 1\n";}

# check `` processing

$x = `echo hi there`;
if ($x eq "hi there\n") {print "ok 2\n";} else {print "not ok 2\n";}

# check $#array

$x[0] = 'foo';
$x[1] = 'foo';
$tmp = $#x;
print "#3\t:$tmp: == :1:\n";
if ($#x == '1') {print "ok 3\n";} else {print "not ok 3\n";}

# check numeric literal

$x = 1;
if ($x == '1') {print "ok 4\n";} else {print "not ok 4\n";}

# check <> pseudoliteral

#
# NTTMODIFY: -> "/dev/null" was translated into "nul"
#
open(try, "nul") || open(try,"nla0:") || (die "Can't open nul.");
if (<try> eq '') {
    print "ok 5\n";
}
else {
    print "not ok 5\n";
#
# NTTMODIFY: -> "/dev/null" was translated into "nul"
#
    die "nul IS NOT A CHARACTER SPECIAL FILE!!!!\n" unless -c 'nul';
}

open(try, "test.bat") || (die "Can't open test.bat");
if (<try> ne '') {print "ok 6\n";} else {print "not ok 6\n";}
