mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-09 20:57:11 +00:00
AttrTemplate.pm: deterministic parameter replacement in commands (Forum #112383)
git-svn-id: https://svn.fhem.de/fhem/trunk@22304 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9c5e8b37e6
commit
e1bd4075db
@ -334,8 +334,8 @@ AttrTemplate_Set($$@)
|
||||
|
||||
my $cmdlist = join("\n",@{$h->{cmds}});
|
||||
$repl{DEVICE} = $name;
|
||||
map { $cmdlist =~ s/(?<!\\)$_/$repl{$_}/g; } keys %repl;
|
||||
map { $cmdlist =~ s/\\$_/$_/g; } keys %repl;
|
||||
map { $cmdlist =~ s/(?<!\\)$_/$repl{$_}/g; } sort keys %repl;
|
||||
map { $cmdlist =~ s/\\$_/$_/g; } sort keys %repl;
|
||||
my $cl = $hash->{CL};
|
||||
my $cmd = "";
|
||||
my @ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user