Closed
Description
I think it would be really helpful, if there was a rule that would point out when there's attempt to reuse (assign something to) an automatic variable, as sometimes, those may get reused by mistake, like $Host
, $Home
, $Args
, $Input
, etc. While in some cases the engine will throw out an error during the execution (i.e. $Host = 'Hello!'
), there are occasions when no errors will show up, like $Args = 'Hello!'
. The inability to retrieve the assigned value back from the $Args
may be confusing to those people who don't yet know that $Args is actually an automatic variable.