зеркало из https://github.com/mozilla/gecko-dev.git
Redirect stderr for xargs parameter check to /dev/null to prevent
spurious output from appearing in output stream - cosmetic only, it does not change the behaviour of the xargs parameter check Patch provided by Darren Tucker bug 294225
This commit is contained in:
Родитель
dfc15f9f61
Коммит
16dce8fcc3
|
@ -21,6 +21,7 @@
|
|||
# complete rewrite by Ken Estes for contact info see the
|
||||
# mozilla/webtools/tinderbox2/Contact file.
|
||||
# Contributor(s): Stephen Lamm (slamm@yahoo-inc.com)
|
||||
# Mike Taylor (bear@code-bear.com)
|
||||
|
||||
use Cwd;
|
||||
use Getopt::Long;
|
||||
|
@ -164,7 +165,7 @@ for my $cmd (@cmds) {
|
|||
|
||||
my $arg;
|
||||
foreach $arg (@XARGS_SINGLE_ARGS) {
|
||||
my $output = `$CMD{'echo'} /bin/true | $CMD{'xargs'} $arg $CMD{'echo'}`;
|
||||
my $output = `$CMD{'echo'} /bin/true | $CMD{'xargs'} 2>/dev/null $arg $CMD{'echo'}`;
|
||||
if ($output eq "/bin/true\n") {
|
||||
$xargs_single=$arg;
|
||||
last;
|
||||
|
|
Загрузка…
Ссылка в новой задаче