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:
bear%code-bear.com 2005-10-12 02:59:10 +00:00
Родитель dfc15f9f61
Коммит 16dce8fcc3
1 изменённых файлов: 2 добавлений и 1 удалений

3
webtools/tinderbox2/configure поставляемый
Просмотреть файл

@ -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;