git://git.jankratochvil.net
/
macros.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
df3336d
)
Filename globbing made perl-5.6.0 backward compatible.
author
short
<>
Thu, 10 Jul 2003 18:59:27 +0000
(18:59 +0000)
committer
short
<>
Thu, 10 Jul 2003 18:59:27 +0000
(18:59 +0000)
AutoGen.pm
patch
|
blob
|
history
diff --git
a/AutoGen.pm
b/AutoGen.pm
index
4bbb8fd
..
796733e
100644
(file)
--- a/
AutoGen.pm
+++ b/
AutoGen.pm
@@
-38,7
+38,6
@@
BEGIN {
use File::chdir; # $CWD
use File::Touch; # &touch
use POSIX qw(WIFEXITED WEXITSTATUS WIFSIGNALED WTERMSIG WIFSTOPPED WSTOPSIG);
use File::chdir; # $CWD
use File::Touch; # &touch
use POSIX qw(WIFEXITED WEXITSTATUS WIFSIGNALED WTERMSIG WIFSTOPPED WSTOPSIG);
- use File::Glob qw(:glob); # &bsd_glob, &GLOB_*
HERE
eval "$_\n; 1;" or push @missing,(/^\s*use\s+([^ ;]+)/)[0];
}
HERE
eval "$_\n; 1;" or push @missing,(/^\s*use\s+([^ ;]+)/)[0];
}
@@
-122,8
+121,7
@@
my(@files)=@_;
my $nocheck=shift @files if $files[0] eq "nocheck";
my $dest=pop @files;
# expand pattern to properly match © resulting filenames count
my $nocheck=shift @files if $files[0] eq "nocheck";
my $dest=pop @files;
# expand pattern to properly match © resulting filenames count
- @files=map({ bsd_glob $_,&GLOB_ERR|&GLOB_NOSORT; } @files);
- confess "$!" if $File::Glob::GLOB_ERROR;
+ @files=map({ glob $_; } @files);
@files==copy @files,$dest or $nocheck or confess "$!";
}
@files==copy @files,$dest or $nocheck or confess "$!";
}
@@
-134,9
+132,8
@@
my(@files)=@_;
my $nocheck=shift @files if $files[0] eq "nocheck";
my $flag=shift @files if ref $files[0];
my $nocheck=shift @files if $files[0] eq "nocheck";
my $flag=shift @files if ref $files[0];
- # expand pattern to properly match © resulting filenames count
- @files=map({ bsd_glob $_,&GLOB_ERR|&GLOB_NOSORT; } @files);
- confess "$!" if $File::Glob::GLOB_ERROR;
+ # expand pattern to properly match &remove resulting filenames count
+ @files=map({ glob $_; } @files);
@files==remove((!$flag ? () : $flag),@files) or $nocheck or confess "$!";
}
@files==remove((!$flag ? () : $flag),@files) or $nocheck or confess "$!";
}