File Coverage

blib/lib/Devel/AssertOS/OSFeatures/POSIXShellRedirection.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 0 3 0.0
total 22 25 88.0


line stmt bran cond sub pod time code
1             package Devel::AssertOS::OSFeatures::POSIXShellRedirection;
2              
3             our $VERSION = '1.4';
4              
5 3     3   6906 use Devel::CheckOS;
  3         14  
  3         273  
6 3     3   28 use strict;
  3         7  
  3         171  
7 3     3   18 use warnings;
  3         8  
  3         188  
8 3     3   14 no warnings 'redefine';
  3         7  
  3         635  
9              
10 5     5 0 48 sub matches { return qw(Unix Cygwin BeOS VOS); }
11 3     3 0 12 sub os_is { Devel::CheckOS::os_is(matches()); }
12             Devel::CheckOS::die_unsupported() unless(os_is());
13              
14             sub expn {
15 1     1 0 91 join("\n",
16             "The operating system's normal shell(s) support POSIX-style redirection",
17             "such as:",
18             " foo | more (piping from one command to another)",
19             " foo > file (redirection of STDOUT to a file)",
20             " foo 2> file (redirection of STDERR to a file)",
21             " foo < file (redirection of STDIN from a file)",
22             "and so on"
23             )
24             }
25              
26             =head1 NAME
27              
28             Devel::AssertOS::OSFeatures::POSIXShellRedirection - check whether
29             the OS we're running on can be expected to support POSIX shell
30             redirection.
31              
32             =head1 SYNOPSIS
33              
34             See L and L
35              
36             =head1 COPYRIGHT and LICENCE
37              
38             Copyright 2024 David Cantrell
39              
40             This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively.
41              
42             =cut
43              
44             1;