forked from extern/shorewall_code
Combine two pattern matches
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6927 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
7d7feff03f
commit
01a7a480e1
@ -875,10 +875,10 @@ sub read_a_line() {
|
||||
#
|
||||
# Expand Shell Variables using %ENV
|
||||
#
|
||||
while ( $currentline =~ /^(.*?)\$([a-zA-Z]\w*)(.*)$/ || $currentline =~ /^(.*?)\${([a-zA-Z]\w*)}(.*)$/ ) {
|
||||
my $val = $ENV{$2};
|
||||
while ( $currentline =~ /^(.*?)\$({)?([a-zA-Z]\w*)(?(2)}|)(.*)$/ ) {
|
||||
my $val = $ENV{$3};
|
||||
$val = '' unless defined $val;
|
||||
$currentline = join( '', $1 , $val , $3 );
|
||||
$currentline = join( '', $1 , $val , $4 );
|
||||
}
|
||||
|
||||
if ( $currentline =~ /^\s*INCLUDE\s/ ) {
|
||||
|
Loading…
Reference in New Issue
Block a user