Bug in cmdalias

Begonnen von phervier, 14 Dezember 2014, 23:19:23

Vorheriges Thema - Nächstes Thema

phervier

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.

rudolfkoenig

Thanks for the bugreport, I fixed it.