glenndehaan / ikea-tradfri-coap-docs

How can you communicate to your ikea tradfri gateway/hub through coap-client
MIT License
189 stars 21 forks source link

Prevent variable mangling. #7

Closed kapstok closed 5 years ago

kapstok commented 5 years ago

$USERNAME is a variable reserved in Unix for the logged in user. Calling

$ export USERNAME="my-tradfri-username"

could lead to undesired results. To prevent this issue from happening to other variables* as well, all variables have the TF_ (TradFri) prefix.

* Variables used by other systems.

glenndehaan commented 5 years ago

Wow that is a good find. First thing that came up in my mind was why whould you do that. But yeah you can do that.