MicrosoftDocs / terminal

Creative Commons Attribution 4.0 International
467 stars 170 forks source link

Clarify that pass-through `;` characters (semicolons) must be `\`-escaped (backslash) #763

Closed mklement0 closed 1 month ago

mklement0 commented 2 months ago

Type of issue

Missing information

Feedback

If ; characters must be passed through as part of an executable command line - such as when invoking the PowerShell CLI with -Command and ;-separated PowerShell statements - they must be escaped as \;, which is worth mentioning explicitly - especially given that this escaping need applies even to ; characters inside (embedded) "..." - for an example, see https://superuser.com/q/1840766/139307

Page URL

https://learn.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows

Content source URL

https://github.com/MicrosoftDocs/terminal/blob/main/TerminalDocs/command-line-arguments.md

Author

@nguyen-dows

Document Id

0d5d0fe3-01ef-66e8-263d-a0a7852ffa7a