From: Rafael Kitover Date: Fri, 4 Jul 2008 00:56:01 +0000 (+0000) Subject: WrapCGI: portability fix for test shell script X-Git-Tag: 0.030~60 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-WrapCGI.git;a=commitdiff_plain;h=57e1d22df9607a8c496b4bf74ca639221387ed3e WrapCGI: portability fix for test shell script --- diff --git a/META.yml b/META.yml index 88a9625..dac8bd7 100644 --- a/META.yml +++ b/META.yml @@ -24,4 +24,4 @@ requires: Task::Weaken: 0 URI: 0 parent: 0 -version: 0.002 +version: 0.0021 diff --git a/lib/Catalyst/Controller/CGIBin.pm b/lib/Catalyst/Controller/CGIBin.pm index db21f50..1d2536c 100644 --- a/lib/Catalyst/Controller/CGIBin.pm +++ b/lib/Catalyst/Controller/CGIBin.pm @@ -7,7 +7,6 @@ use Class::C3; use URI::Escape; use File::Slurp 'slurp'; use File::Find::Rule (); -use Cwd; use Catalyst::Exception (); use File::Spec::Functions qw/splitdir abs2rel/; use IPC::Open3; diff --git a/lib/Catalyst/Controller/WrapCGI.pm b/lib/Catalyst/Controller/WrapCGI.pm index a4cd5de..e2e7078 100644 --- a/lib/Catalyst/Controller/WrapCGI.pm +++ b/lib/Catalyst/Controller/WrapCGI.pm @@ -15,11 +15,11 @@ Catalyst::Controller::WrapCGI - Run CGIs in Catalyst =head1 VERSION -Version 0.002 +Version 0.0021 =cut -our $VERSION = '0.002'; +our $VERSION = '0.0021'; =head1 SYNOPSIS diff --git a/t/lib/TestCGIBin/root/cgi-bin/test.sh b/t/lib/TestCGIBin/root/cgi-bin/test.sh index bcaf85f..3d50f7a 100755 --- a/t/lib/TestCGIBin/root/cgi-bin/test.sh +++ b/t/lib/TestCGIBin/root/cgi-bin/test.sh @@ -1,5 +1,5 @@ #!/bin/sh -/bin/echo -e 'Content-Type: text/html; charset=ISO-8859-1\r\n' +printf '%s\r\n' 'Content-Type: text/html; charset=ISO-8859-1' echo "Hello!"