Pod::Man bugfixes (from Russ Allbery)
[p5sagit/p5-mst-13.2.git] / lib / shellwords.pl
index 5d593da..1c45a5a 100644 (file)
@@ -17,13 +17,13 @@ sub shellwords {
     while ($_ ne '') {
        $field = '';
        for (;;) {
-           if (s/^"(([^"\\]|\\[\\"])*)"//) {
+           if (s/^"(([^"\\]|\\.)*)"//) {
                ($snippet = $1) =~ s#\\(.)#$1#g;
            }
            elsif (/^"/) {
                die "Unmatched double quote: $_\n";
            }
-           elsif (s/^'(([^'\\]|\\[\\'])*)'//) {
+           elsif (s/^'(([^'\\]|\\.)*)'//) {
                ($snippet = $1) =~ s#\\(.)#$1#g;
            }
            elsif (/^'/) {