You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
about_Automatic_Variables should be updated to indicate that automatic variables that are conceptually read-only can still be assigned to, and that that won't change for most of them so as not to break existing code #1510
We discussed possibly making all automatic variables functionally read only, however, agreed that in many cases like $PWD someone could be using it already without problem as they didn't Set-Location so $PWD isn't overwritten. So other than $_, $PSItem, and $Input, we decided to error on the side of limiting the breaking change to the most common cases.
Therefore it should be noted in the documentation that other conceptually read-only variables, even though they can be written to - for backward compatibility - shouldn't be.
changed the title [-]about_Automatic_Variables should be updated to indicate that automatic variables that are conceptually read-only can still be assigned to, and that won't change for most of them so as not to break existing code[/-][+]about_Automatic_Variables should be updated to indicate that automatic variables that are conceptually read-only can still be assigned to, and that that won't change for most of them so as not to break existing code[/+]on Aug 4, 2017
Activity
[-]about_Automatic_Variables should be updated to indicate that automatic variables that are conceptually read-only can still be assigned to, and that won't change for most of them so as not to break existing code[/-][+]about_Automatic_Variables should be updated to indicate that automatic variables that are conceptually read-only can still be assigned to, and that that won't change for most of them so as not to break existing code[/+]