mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 14:07:55 +00:00
parallel: Give warning if \0 is contained in arguments.
This commit is contained in:
parent
2467d0b5be
commit
feb914f4ef
|
@ -9142,6 +9142,12 @@ sub get {
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
my $ret = $self->{'arg_sub_queue'}->get();
|
my $ret = $self->{'arg_sub_queue'}->get();
|
||||||
|
if($ret and
|
||||||
|
grep { index($_->orig(),"\0") != -1 } map { @$_ } $ret) {
|
||||||
|
::warning("a NUL character occurred in the input.",
|
||||||
|
"It cannot be passed through in the argument list.",
|
||||||
|
"Did you mean to use the --null option?");
|
||||||
|
}
|
||||||
if(defined $Global::max_number_of_args
|
if(defined $Global::max_number_of_args
|
||||||
and $Global::max_number_of_args == 0) {
|
and $Global::max_number_of_args == 0) {
|
||||||
::debug("run", "Read 1 but return 0 args\n");
|
::debug("run", "Read 1 but return 0 args\n");
|
||||||
|
|
Loading…
Reference in a new issue