Commit | Line | Data |
a687059c |
1 | #!./perl |
2 | |
fe14fcc3 |
3 | # $Header: glob.t,v 4.0 91/03/20 01:52:49 lwall Locked $ |
a687059c |
4 | |
5 | print "1..4\n"; |
6 | |
fe14fcc3 |
7 | @ops = <op/*>; |
a687059c |
8 | $list = join(' ',@ops); |
9 | |
fe14fcc3 |
10 | chop($otherway = `echo op/*`); |
a687059c |
11 | |
12 | print $list eq $otherway ? "ok 1\n" : "not ok 1\n$list\n$otherway\n"; |
13 | |
14 | print $/ eq "\n" ? "ok 2\n" : "not ok 2\n"; |
15 | |
fe14fcc3 |
16 | while (<jskdfjskdfj* op/* jskdjfjkosvk*>) { |
a687059c |
17 | $not = "not " unless $_ eq shift @ops; |
18 | $not = "not at all " if $/ eq "\0"; |
19 | } |
20 | print "${not}ok 3\n"; |
21 | |
22 | print $/ eq "\n" ? "ok 4\n" : "not ok 4\n"; |