Devel::AssertOS::OSFeatures::POSIXShellRedirection - check whether


Devel-CheckOS documentation Contained in the Devel-CheckOS distribution.

Index


Code Index:

NAME

Top

Devel::AssertOS::OSFeatures::POSIXShellRedirection - check whether the OS we're running on can be expected to support POSIX shell redirection.

SYNOPSIS

Top

See Devel::CheckOS and Devel::AssertOS

COPYRIGHT and LICENCE

Top


Devel-CheckOS documentation Contained in the Devel-CheckOS distribution.

# $Id: POSIXShellRedirection.pm,v 1.3 2008/11/05 22:52:35 drhyde Exp $

package Devel::AssertOS::OSFeatures::POSIXShellRedirection;

$VERSION = '1.4';

use Devel::CheckOS;

sub matches { return qw(Unix Cygwin BeOS VOS); }
sub os_is { Devel::CheckOS::os_is(matches()); }
Devel::CheckOS::die_unsupported() unless(os_is());

sub expn {
join("\n",
"The operating system's normal shell(s) support POSIX-style redirection",
"such as:",
"  foo |  more    (piping from one command to another)",
"  foo >  file    (redirection of STDOUT to a file)",
"  foo 2> file    (redirection of STDERR to a file)",
"  foo <  file    (redirection of STDIN from a file)",
"and so on"
)
}

1;