| 1 | package Devel::AssertOS::OSFeatures::POSIXShellRedirection; | ||||||||||
| 2 | |||||||||||
| 3 | 4 | our $VERSION = '1.4'; | |||||||||
| 4 | |||||||||||
| 5 | 4 | ▶ | use Devel::CheckOS; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 4 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 4 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 4 | ▶ | no warnings 'redefine'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 7 | ▶ | sub matches { return qw(Unix Cygwin BeOS VOS); } | ||||||||
|
Subroutine
matches: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 11 | 5 | ▶ | sub os_is { Devel::CheckOS::os_is(matches()); } | ||||||||
|
Subroutine
os_is: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 12 | 4 | ▶ | Devel::CheckOS::die_unsupported() unless(os_is()); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | |||||||||||
| 14 | 1 | ▶ | sub expn { | ||||||||
|
Subroutine
expn: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | 1 | 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<Devel::CheckOS> and L<Devel::AssertOS> | ||||||||||
| 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 | 4 | 1; | |||||||||