mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-23 05:07:54 +00:00
parallel: Hans gets Undefined subroutine &Data::Dump::dump at 1949. Eval a dummy sub.
This commit is contained in:
parent
637f5391af
commit
2506e775f7
|
@ -182,9 +182,9 @@ cc:Sandro Cazzaniga <kharec@mandriva.org>,
|
|||
Ryoichiro Suzuki <ryoichiro.suzuki@gmail.com>, Jesse Alama
|
||||
<jesse.alama@gmail.com>
|
||||
|
||||
Subject: GNU Parallel 20111222 ('?') released
|
||||
Subject: GNU Parallel 20111222 ('Hitchens') released
|
||||
|
||||
GNU Parallel 20111122 ('?') has been released. It is
|
||||
GNU Parallel 20111122 ('Hitchens') has been released. It is
|
||||
available for download at: http://ftp.gnu.org/gnu/parallel/
|
||||
|
||||
This is a bugfix release with no new features. Probably a good release
|
||||
|
|
|
@ -505,7 +505,7 @@ sub get_options_from_array {
|
|||
sub parse_options {
|
||||
# Returns: N/A
|
||||
# Defaults:
|
||||
$Global::version = 20111209;
|
||||
$Global::version = 20111218;
|
||||
$Global::progname = 'parallel';
|
||||
$Global::infinity = 2**31;
|
||||
$Global::debug = 0;
|
||||
|
@ -1945,6 +1945,9 @@ sub my_dump {
|
|||
return Dumper(@dump_this);
|
||||
}
|
||||
} else {
|
||||
# Create a dummy Data::Dump:dump as Hans Schou sometimes has
|
||||
# it undefined
|
||||
eval "sub Data::Dump:dump {}";
|
||||
eval "use Data::Dump qw(dump);";
|
||||
return (Data::Dump::dump(@dump_this));
|
||||
}
|
||||
|
|
|
@ -1526,6 +1526,9 @@ symlinks are empty files.
|
|||
|
||||
B<cp -rs /the/source/dir mirror_dir; find mirror_dir -type l | parallel -m rm {} '&&' touch {}>
|
||||
|
||||
Find the files in a list that do no exist.
|
||||
|
||||
B<cat file_list | parallel 'if [ ! -e {} ] ; then echo {}; fi'>
|
||||
|
||||
=head1 EXAMPLE: Removing file extension when processing files
|
||||
|
||||
|
|
Loading…
Reference in a new issue