From: Jim Meyering Date: Thu, 30 Jan 1997 03:14:43 +0000 (+0000) Subject: . X-Git-Tag: SH-UTILS-1_16a~332 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9fcda065b6175195f1adfdd60a9833ba21ed0753;p=thirdparty%2Fcoreutils.git . --- diff --git a/tests/cut/mk-script.pl b/tests/cut/mk-script.pl index 4cfae7c8e8..74275c096c 100644 --- a/tests/cut/mk-script.pl +++ b/tests/cut/mk-script.pl @@ -244,8 +244,10 @@ EOF1 my %valid_via = map {$_ => 1} qw (REDIR FILE PIPE); my %via_msg_string = (REDIR => '<', FILE => 'F', PIPE => '|'); - die "use" if 0&& $Test::input_via{$test_name} && $Test::input_via_default; - die "use" if 0 && $Test::env{$test_name} && $Test::env_default; + + # Inhibit warnings about `used only once'. + die if 0 && $Test::input_via{$test_name} && $Test::input_via_default; + die if 0 && $Test::env{$test_name} && $Test::env_default; my $vias = $Test::input_via{$test_name} || $Test::input_via_default || {FILE => 0}; diff --git a/tests/head/mk-script.pl b/tests/head/mk-script.pl index 4cfae7c8e8..74275c096c 100644 --- a/tests/head/mk-script.pl +++ b/tests/head/mk-script.pl @@ -244,8 +244,10 @@ EOF1 my %valid_via = map {$_ => 1} qw (REDIR FILE PIPE); my %via_msg_string = (REDIR => '<', FILE => 'F', PIPE => '|'); - die "use" if 0&& $Test::input_via{$test_name} && $Test::input_via_default; - die "use" if 0 && $Test::env{$test_name} && $Test::env_default; + + # Inhibit warnings about `used only once'. + die if 0 && $Test::input_via{$test_name} && $Test::input_via_default; + die if 0 && $Test::env{$test_name} && $Test::env_default; my $vias = $Test::input_via{$test_name} || $Test::input_via_default || {FILE => 0}; diff --git a/tests/join/mk-script.pl b/tests/join/mk-script.pl index 4cfae7c8e8..74275c096c 100644 --- a/tests/join/mk-script.pl +++ b/tests/join/mk-script.pl @@ -244,8 +244,10 @@ EOF1 my %valid_via = map {$_ => 1} qw (REDIR FILE PIPE); my %via_msg_string = (REDIR => '<', FILE => 'F', PIPE => '|'); - die "use" if 0&& $Test::input_via{$test_name} && $Test::input_via_default; - die "use" if 0 && $Test::env{$test_name} && $Test::env_default; + + # Inhibit warnings about `used only once'. + die if 0 && $Test::input_via{$test_name} && $Test::input_via_default; + die if 0 && $Test::env{$test_name} && $Test::env_default; my $vias = $Test::input_via{$test_name} || $Test::input_via_default || {FILE => 0}; diff --git a/tests/ls/mk-script.pl b/tests/ls/mk-script.pl index 4cfae7c8e8..74275c096c 100644 --- a/tests/ls/mk-script.pl +++ b/tests/ls/mk-script.pl @@ -244,8 +244,10 @@ EOF1 my %valid_via = map {$_ => 1} qw (REDIR FILE PIPE); my %via_msg_string = (REDIR => '<', FILE => 'F', PIPE => '|'); - die "use" if 0&& $Test::input_via{$test_name} && $Test::input_via_default; - die "use" if 0 && $Test::env{$test_name} && $Test::env_default; + + # Inhibit warnings about `used only once'. + die if 0 && $Test::input_via{$test_name} && $Test::input_via_default; + die if 0 && $Test::env{$test_name} && $Test::env_default; my $vias = $Test::input_via{$test_name} || $Test::input_via_default || {FILE => 0};