X-Git-Url: http://git.shiar.nl/barcat.git/blobdiff_plain/c53a0e13374a11b34c052685fb6711dd1bd7d8f1..96ccae07958e7b6fe402e90d9540b49a274d5419:/t/regress.t diff --git a/t/regress.t b/t/regress.t index c910748..a10827b 100755 --- a/t/regress.t +++ b/t/regress.t @@ -43,7 +43,7 @@ for my $candidate (@params) { my $shell = $script; if ($script =~ /\|/) { # explicit shell wrapper to capture all warnings - $script =~ s/'/'\\''/g; + $shell =~ s/'/'\\''/g; $shell = "sh -c '$shell'"; } $shell .= ' 2>' . ($wantwarn ? '&1' : '/dev/null');