mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 19:01:19 +01:00
Improve readability (I think)
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6928 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
01a7a480e1
commit
c8cf4f6685
@ -875,7 +875,12 @@ sub read_a_line() {
|
||||
#
|
||||
# Expand Shell Variables using %ENV
|
||||
#
|
||||
while ( $currentline =~ /^(.*?)\$({)?([a-zA-Z]\w*)(?(2)}|)(.*)$/ ) {
|
||||
while ( $currentline =~ m( ^(.*?)
|
||||
\$({)?
|
||||
([a-zA-Z]\w*)
|
||||
(?(2)})
|
||||
(.*)$)x
|
||||
) {
|
||||
my $val = $ENV{$3};
|
||||
$val = '' unless defined $val;
|
||||
$currentline = join( '', $1 , $val , $4 );
|
||||
|
Loading…
Reference in New Issue
Block a user