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
Format Document feature removes ": " (colon space) when beside a variable in a double quoted string. This occurs if the colon is escaped with the ` character, or, if the variable is wrapped in subexpression operator $().
Expected Behaviour
-- Description of what should be happening --
Nothing - escaping the character is valid, as is using a subexpression.
Actual Behaviour
-- Description of what actually happens --
Assuming the following two lines in code: write-host "There is an issue doing the thing on $server`: $($_.exception.message)"
or write-host "There is an issue doing the thing on $($server): $($_.exception.message)"
Format document removes the : characters, leaving: write-host "There is an issue doing the thing on $server$($_.exception.message)"
or write-host "There is an issue doing the thing on $($server)$($_.exception.message)"
Attached Logs
I'm not aware of any logging for this.
Follow the instructions in the troubleshooting docs
about capturing and sending logs.
The text was updated successfully, but these errors were encountered:
System Details
System Details Output
Issue Description
Format Document feature removes ": " (colon space) when beside a variable in a double quoted string. This occurs if the colon is escaped with the ` character, or, if the variable is wrapped in subexpression operator $().
Expected Behaviour
-- Description of what should be happening --
Nothing - escaping the character is valid, as is using a subexpression.
Actual Behaviour
-- Description of what actually happens --
Assuming the following two lines in code:
write-host "There is an issue doing the thing on $server`: $($_.exception.message)"
or
write-host "There is an issue doing the thing on $($server): $($_.exception.message)"
Format document removes the
:
characters, leaving:write-host "There is an issue doing the thing on $server$($_.exception.message)"
or
write-host "There is an issue doing the thing on $($server)$($_.exception.message)"
Attached Logs
I'm not aware of any logging for this.
Follow the instructions in the troubleshooting docs
about capturing and sending logs.
The text was updated successfully, but these errors were encountered: