forked from extern/shorewall_code
Omit warning message and improve implementation of getparams
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
1f65a5116c
commit
d0e37eba5e
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -32,4 +32,4 @@ set -a
|
||||
|
||||
set +a
|
||||
|
||||
env
|
||||
export -p
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user