mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 05:57:54 +00:00
parallel: Redirect STDERR temporarily, so errors on MacOS X are ignored.
This commit is contained in:
parent
a315bd26e6
commit
1863566363
|
@ -7725,8 +7725,15 @@ sub start {
|
|||
"perl -MIPC::Open3 -e ".
|
||||
::shell_quote_scalar_default($script)
|
||||
);
|
||||
# Redirect STDERR temporarily,
|
||||
# so errors on MacOS X is ignored.
|
||||
open my $saveerr, ">&STDERR";
|
||||
open STDERR, '>', "/dev/null";
|
||||
# Run the test
|
||||
::debug("init",qq{bash -c $bash 2>/dev/null});
|
||||
qx{ bash -c $bash 2>/dev/null };
|
||||
open STDERR, ">&", $saveerr;
|
||||
|
||||
if(-e $name) {
|
||||
# Does not support open3(x,x,x,"-")
|
||||
# or does not have bash:
|
||||
|
|
Loading…
Reference in a new issue