Commit | Line | Data |
a687059c |
1 | #!./perl |
2 | |
79072805 |
3 | # $RCSfile: glob.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:55 $ |
a687059c |
4 | |
5 | print "1..4\n"; |
6 | |
fe14fcc3 |
7 | @ops = <op/*>; |
a687059c |
8 | |
adbc4883 |
9 | map { $files{$_}++ } <op/*>; |
10 | map { delete $files{$_} } split /[\s\n]/, `echo op/*`; |
11 | if (keys %files) { |
12 | print "not ok 1\t(",join(' ', sort keys %files),"\n"; |
13 | } else { print "ok 1\n"; } |
a687059c |
14 | |
15 | print $/ eq "\n" ? "ok 2\n" : "not ok 2\n"; |
16 | |
fe14fcc3 |
17 | while (<jskdfjskdfj* op/* jskdjfjkosvk*>) { |
a687059c |
18 | $not = "not " unless $_ eq shift @ops; |
19 | $not = "not at all " if $/ eq "\0"; |
20 | } |
21 | print "${not}ok 3\n"; |
22 | |
23 | print $/ eq "\n" ? "ok 4\n" : "not ok 4\n"; |