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
In the Quoting rules document, I think it would make sense to make note that smart quotes are interpreted as dump quotes and therefore also need to be escaped in a literal sting, e.g.: '`‘Hello,`’ he said, `‘to you`’'
Prior to this change, the `about_Quoting_Rules` topic document
didn't indicate that PowerShell treats smart/typographic
quotation marks as normal/programmer quotation marks, making
them subject to the same escaping and quoting behaviors.
This change:
- Adds a note about smart quotation marks and guidance to avoid
using them to enclose strings.
- Adds an example of escaping smart quotation marks.
- Fixes AB#309820
- ResolvesMicrosoftDocs#11401
Type of issue
Missing information
Feedback
(Sorry to bother you again with a minor issue 😊)
In the Quoting rules document, I think it would make sense to make note that smart quotes are interpreted as dump quotes and therefore also need to be escaped in a literal sting, e.g.:
'`‘Hello,`’ he said, `‘to you`’'
It might also be a worth to mention to avoid enclosing strings with smart quotes
#1936
.Related: https://stackoverflow.com/a/78961908/1701026
Page URL
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quoting_rules?view=powershell-7.4
Content source URL
https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.4/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md
Author
@sdwheeler
Document Id
0b3f8e35-a9eb-affd-4bef-c6d584373914
The text was updated successfully, but these errors were encountered: