From: Andy Dougherty Date: Wed, 14 Jun 2000 13:33:32 +0000 (-0400) Subject: [ID 20000614.003] 5.6.0 File/Glob.pm incompatibility X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e9163ef5399af2fb180763780e7820ee1b8b8a15;p=p5sagit%2Fp5-mst-13.2.git [ID 20000614.003] 5.6.0 File/Glob.pm incompatibility Message-Id: p4raw-id: //depot/cfgperl@6274 --- diff --git a/ext/File/Glob/Glob.pm b/ext/File/Glob/Glob.pm index 98ee34d..57bfa0d 100644 --- a/ext/File/Glob/Glob.pm +++ b/ext/File/Glob/Glob.pm @@ -138,6 +138,9 @@ sub csh_glob { $pat = $_ unless defined $pat; # extract patterns + $pat =~ s/^\s+//; # Protect against empty elements in + $pat =~ s/\s+$//; # things like < *.c> and <*.c >. + # These alone shouldn't trigger ParseWords. if ($pat =~ /\s/) { # XXX this is needed for compatibility with the csh # implementation in Perl. Need to support a flag