Omit warning message and improve implementation of getparams

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-12-01 09:24:47 -08:00
parent 1f65a5116c
commit d0e37eba5e
3 changed files with 4 additions and 10 deletions

View File

@ -2906,11 +2906,9 @@ sub get_params() {
fatal_error "Processing of $fn failed" if $?;
for ( @params ) {
if ( /^(.*?)=(.*)$/ ) {
if ( /^export (.*?)='(.*)'$/ ) {
$params{$1} = $2 unless $1 eq '_';
} else {
warning_message "Unrecognized output from 'env' ($_) ignored";
}
}
}
}
}

View File

@ -32,4 +32,4 @@ set -a
set +a
env
export -p

View File

@ -17,11 +17,7 @@ VI. PROBLEMS CORRECTED AND NEW FEATURES IN PRIOR RELEASES
1) If the output of 'env' contained a multi-line value, then
compilation failed with an Internal Error. The code has been
changed so that the compiler now emits a warning and continues:
WARNING: Unrecognized output from 'env' (...) ignored
where ... is the output.
changed to ignore exported symbols with multi-line values.
4.4.15