FHEM Forum

FHEM => English Corner => Thema gestartet von: phervier am 14 Dezember 2014, 23:19:23

Titel: Bug in cmdalias
Beitrag von: phervier am 14 Dezember 2014, 23:19:23
Hello

I hope this is the good place to post that.

i detected a bug in the cmdalias. If you define a simple command like
define c5 cmdalias casto1on AS {fhem ("set Prise_casto_1 on")}

if works perfectly as it should do but if unfortunatly you make a mistake and typas a command like

casto1on anything

FHEM just crash without any notice. This problem could be avoided if you define the cmdalias as :
define c5 cmdalias casto1on  .* AS {fhem ("set Prise_casto_1 on")}

but id definitely needs a notice.
Titel: Antw:Bug in cmdalias
Beitrag von: rudolfkoenig am 15 Dezember 2014, 09:31:51
Thanks for the bugreport, I fixed it.