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
Labels
Pri2
Priority - Medium
From PowerShell/PowerShell#3061 (comment):
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.
In PSv6, hopefully, a PSScriptAnalyzer rule will warn about doing so, but there's nothing in the engine that will enforce this.
Version(s) of document impacted
The text was updated successfully, but these errors were encountered: