9 if ($^O eq 'MSWin32') {
10 # Check if tr is installed
11 foreach (split ";", $ENV{PATH}) {
20 if $Config{'tr'} ne '' ;
24 print "1..0 # Skipping tr not found on this system.\n" ;
29 require "filter-util.pl" ;
31 use vars qw( $Inc $Perl $script ) ;
35 use Filter::sh q(tr '[A-E][I-M]' '[a-e][i-m]') ;
36 use Filter::sh q(tr '[N-Z]' '[n-z]') ;
52 PRINT "A (AGAIN) = $A\N" ;
55 my $filename = 'sh.test' ;
56 writeFile($filename, $script) ;
58 my $expected_output = <<'EOM' ;
68 my $a = `$Perl $Inc $filename 2>&1` ;
71 ok(1, ($? >> 8) == 0) ;
72 ok(2, $a eq $expected_output) ;