diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md index bc7afe54a8b4..84761cc8a9f0 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md +++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md @@ -18,7 +18,7 @@ when a command invocation is encountered, parsing continues in argument mode. Non-numeric arguments without quotes are treated as strings. If you have arguments that contain spaces, such as paths, then you must enclose those argument values in quotes. For more information about argument parsing, see the -**Argument mode** section of [about_Parsing][01]. +**Argument mode** section of [about_Parsing][02]. Quotation marks are used to specify a literal string. You can enclose a string in single quotation marks (`'`) or double quotation marks (`"`). @@ -34,15 +34,14 @@ command that are run on the remote computer. In a remote session, quotation marks also determine whether the variables in a command are interpreted first on the local computer or on the remote computer. +> [!NOTE] > PowerShell treats smart quotation marks, also called typographic or curly > quotes, as normal quotation marks for strings. Don't use smart quotation > marks to enclose strings. When writing strings that contain smart quotation > marks, follow the guidance in the -> [Including quote characters in a string](#including-quote-characters-in-a-string) -> section of this document. -> -> For more information about smart quotation marks, see the _Smart Quotes_ -> section in the Wikipedia article [Quotation marks in English][02]. +> [Including quote characters in a string][01] section of this document. For +> more information about smart quotation marks, see the _Smart Quotes_ section +> in the Wikipedia article [Quotation marks in English][06]. ## Double-quoted strings @@ -85,7 +84,7 @@ enclosed in a subexpression. For example: ``` ```Output -PS version: 7.2.0 +PS version: 5.1.22621.4111 ``` To separate a variable name from subsequent characters in the string, enclose @@ -214,7 +213,7 @@ Use a quotation mark (") to begin a string. Use a quotation mark (`") to begin a string. ``` -Because PowerShell interprets smart quotation marks, like `‘`, `'`, `“`, and +Because PowerShell interprets smart quotation marks, like `‘`, `’`, `“`, and `”`, as normal quotation marks, smart quotation marks also need to be escaped. For example: @@ -459,12 +458,13 @@ For more information about this behavior, see the [about_Parsing][03] article. ## See also - [about_Special_Characters][05] -- [ConvertFrom-StringData][06] +- [ConvertFrom-StringData][07] -[01]: about_Parsing.md#argument-mode -[02]: https://en.wikipedia.org/wiki/Quotation_marks_in_English#Smart_quotes +[01]: #including-quote-characters-in-a-string +[02]: about_Parsing.md#argument-mode [03]: about_Parsing.md#passing-arguments-that-contain-quote-characters [04]: about_preference_variables.md#ofs [05]: about_Special_Characters.md -[06]: xref:Microsoft.PowerShell.Utility.ConvertFrom-StringData +[06]: https://en.wikipedia.org/wiki/Quotation_marks_in_English#Smart_quotes +[07]: xref:Microsoft.PowerShell.Utility.ConvertFrom-StringData diff --git a/reference/7.2/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md b/reference/7.2/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md index 6fade6ac2f45..8194ab509e46 100644 --- a/reference/7.2/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md +++ b/reference/7.2/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md @@ -18,7 +18,7 @@ when a command invocation is encountered, parsing continues in argument mode. Non-numeric arguments without quotes are treated as strings. If you have arguments that contain spaces, such as paths, then you must enclose those argument values in quotes. For more information about argument parsing, see the -**Argument mode** section of [about_Parsing][01]. +**Argument mode** section of [about_Parsing][02]. Quotation marks are used to specify a literal string. You can enclose a string in single quotation marks (`'`) or double quotation marks (`"`). @@ -34,15 +34,14 @@ command that are run on the remote computer. In a remote session, quotation marks also determine whether the variables in a command are interpreted first on the local computer or on the remote computer. +> [!NOTE] > PowerShell treats smart quotation marks, also called typographic or curly > quotes, as normal quotation marks for strings. Don't use smart quotation > marks to enclose strings. When writing strings that contain smart quotation > marks, follow the guidance in the -> [Including quote characters in a string](#including-quote-characters-in-a-string) -> section of this document. -> -> For more information about smart quotation marks, see the _Smart Quotes_ -> section in the Wikipedia article [Quotation marks in English][02]. +> [Including quote characters in a string][01] section of this document. For +> more information about smart quotation marks, see the _Smart Quotes_ section +> in the Wikipedia article [Quotation marks in English][06]. ## Double-quoted strings @@ -214,7 +213,7 @@ Use a quotation mark (") to begin a string. Use a quotation mark (`") to begin a string. ``` -Because PowerShell interprets smart quotation marks, like `‘`, `'`, `“`, and +Because PowerShell interprets smart quotation marks, like `‘`, `’`, `“`, and `”`, as normal quotation marks, smart quotation marks also need to be escaped. For example: @@ -459,12 +458,13 @@ For more information about this behavior, see the [about_Parsing][03] article. ## See also - [about_Special_Characters][05] -- [ConvertFrom-StringData][06] +- [ConvertFrom-StringData][07] -[01]: about_Parsing.md#argument-mode -[02]: https://en.wikipedia.org/wiki/Quotation_marks_in_English#Smart_quotes +[01]: #including-quote-characters-in-a-string +[02]: about_Parsing.md#argument-mode [03]: about_Parsing.md#passing-arguments-that-contain-quote-characters [04]: about_preference_variables.md#ofs [05]: about_Special_Characters.md -[06]: xref:Microsoft.PowerShell.Utility.ConvertFrom-StringData +[06]: https://en.wikipedia.org/wiki/Quotation_marks_in_English#Smart_quotes +[07]: xref:Microsoft.PowerShell.Utility.ConvertFrom-StringData diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md index 9171556521b5..85e7ebe04a26 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md @@ -18,7 +18,7 @@ when a command invocation is encountered, parsing continues in argument mode. Non-numeric arguments without quotes are treated as strings. If you have arguments that contain spaces, such as paths, then you must enclose those argument values in quotes. For more information about argument parsing, see the -**Argument mode** section of [about_Parsing][01]. +**Argument mode** section of [about_Parsing][02]. Quotation marks are used to specify a literal string. You can enclose a string in single quotation marks (`'`) or double quotation marks (`"`). @@ -34,15 +34,14 @@ command that are run on the remote computer. In a remote session, quotation marks also determine whether the variables in a command are interpreted first on the local computer or on the remote computer. +> [!NOTE] > PowerShell treats smart quotation marks, also called typographic or curly > quotes, as normal quotation marks for strings. Don't use smart quotation > marks to enclose strings. When writing strings that contain smart quotation > marks, follow the guidance in the -> [Including quote characters in a string](#including-quote-characters-in-a-string) -> section of this document. -> -> For more information about smart quotation marks, see the _Smart Quotes_ -> section in the Wikipedia article [Quotation marks in English][02]. +> [Including quote characters in a string][01] section of this document. For +> more information about smart quotation marks, see the _Smart Quotes_ section +> in the Wikipedia article [Quotation marks in English][06]. ## Double-quoted strings @@ -85,7 +84,7 @@ enclosed in a subexpression. For example: ``` ```Output -PS version: 7.2.0 +PS version: 7.4.5 ``` To separate a variable name from subsequent characters in the string, enclose @@ -214,7 +213,7 @@ Use a quotation mark (") to begin a string. Use a quotation mark (`") to begin a string. ``` -Because PowerShell interprets smart quotation marks, like `‘`, `'`, `“`, and +Because PowerShell interprets smart quotation marks, like `‘`, `’`, `“`, and `”`, as normal quotation marks, smart quotation marks also need to be escaped. For example: @@ -459,12 +458,13 @@ For more information about this behavior, see the [about_Parsing][03] article. ## See also - [about_Special_Characters][05] -- [ConvertFrom-StringData][06] +- [ConvertFrom-StringData][07] -[01]: about_Parsing.md#argument-mode -[02]: https://en.wikipedia.org/wiki/Quotation_marks_in_English#Smart_quotes +[01]: #including-quote-characters-in-a-string +[02]: about_Parsing.md#argument-mode [03]: about_Parsing.md#passing-arguments-that-contain-quote-characters [04]: about_preference_variables.md#ofs [05]: about_Special_Characters.md -[06]: xref:Microsoft.PowerShell.Utility.ConvertFrom-StringData +[06]: https://en.wikipedia.org/wiki/Quotation_marks_in_English#Smart_quotes +[07]: xref:Microsoft.PowerShell.Utility.ConvertFrom-StringData diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md index 1c6cab38cf41..4a8579d88c7d 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md @@ -18,7 +18,7 @@ when a command invocation is encountered, parsing continues in argument mode. Non-numeric arguments without quotes are treated as strings. If you have arguments that contain spaces, such as paths, then you must enclose those argument values in quotes. For more information about argument parsing, see the -**Argument mode** section of [about_Parsing][01]. +**Argument mode** section of [about_Parsing][02]. Quotation marks are used to specify a literal string. You can enclose a string in single quotation marks (`'`) or double quotation marks (`"`). @@ -34,15 +34,14 @@ command that are run on the remote computer. In a remote session, quotation marks also determine whether the variables in a command are interpreted first on the local computer or on the remote computer. +> [!NOTE] > PowerShell treats smart quotation marks, also called typographic or curly > quotes, as normal quotation marks for strings. Don't use smart quotation > marks to enclose strings. When writing strings that contain smart quotation > marks, follow the guidance in the -> [Including quote characters in a string](#including-quote-characters-in-a-string) -> section of this document. -> -> For more information about smart quotation marks, see the _Smart Quotes_ -> section in the Wikipedia article [Quotation marks in English][02]. +> [Including quote characters in a string][01] section of this document. For +> more information about smart quotation marks, see the _Smart Quotes_ section +> in the Wikipedia article [Quotation marks in English][06]. ## Double-quoted strings @@ -85,7 +84,7 @@ enclosed in a subexpression. For example: ``` ```Output -PS version: 7.2.0 +PS version: 7.5.0-preview.4 ``` To separate a variable name from subsequent characters in the string, enclose @@ -214,7 +213,7 @@ Use a quotation mark (") to begin a string. Use a quotation mark (`") to begin a string. ``` -Because PowerShell interprets smart quotation marks, like `‘`, `'`, `“`, and +Because PowerShell interprets smart quotation marks, like `‘`, `’`, `“`, and `”`, as normal quotation marks, smart quotation marks also need to be escaped. For example: @@ -459,12 +458,13 @@ For more information about this behavior, see the [about_Parsing][03] article. ## See also - [about_Special_Characters][05] -- [ConvertFrom-StringData][06] +- [ConvertFrom-StringData][07] -[01]: about_Parsing.md#argument-mode -[02]: https://en.wikipedia.org/wiki/Quotation_marks_in_English#Smart_quotes +[01]: #including-quote-characters-in-a-string +[02]: about_Parsing.md#argument-mode [03]: about_Parsing.md#passing-arguments-that-contain-quote-characters [04]: about_preference_variables.md#ofs [05]: about_Special_Characters.md -[06]: xref:Microsoft.PowerShell.Utility.ConvertFrom-StringData +[06]: https://en.wikipedia.org/wiki/Quotation_marks_in_English#Smart_quotes +[07]: xref:Microsoft.PowerShell.Utility.ConvertFrom-StringData diff --git a/reference/docs-conceptual/install/Installing-PowerShell-on-macOS.md b/reference/docs-conceptual/install/Installing-PowerShell-on-macOS.md index 1c1e3f1ef568..6cde81bda8d8 100644 --- a/reference/docs-conceptual/install/Installing-PowerShell-on-macOS.md +++ b/reference/docs-conceptual/install/Installing-PowerShell-on-macOS.md @@ -1,6 +1,6 @@ --- description: Information about installing PowerShell on macOS -ms.date: 07/24/2024 +ms.date: 09/10/2024 title: Installing PowerShell on macOS --- @@ -112,18 +112,19 @@ brew upgrade powershell-lts ## Installation via Direct Download -Starting with version 7.2, PowerShell supports the Apple M1 processor. Download the install package -from the [releases][09] page onto your computer. The links to the current versions are: +Starting with version 7.2, PowerShell supports the Apple M-series Arm-based processors. Download the +install package from the [releases][09] page onto your computer. The links to the current versions +are: - PowerShell 7.4 - x64 processors - [powershell-7.4.5-osx-x64.pkg][20] - - M1 processors - [powershell-7.4.5-osx-arm64.pkg][18] + - Arm64 processors - [powershell-7.4.5-osx-arm64.pkg][18] - PowerShell 7.2 (LTS) - x64 processors - [powershell-7.2.23-osx-x64.pkg][16] - - M1 processors - [powershell-7.2.23-osx-arm64.pkg][14] + - Arm64 processors - [powershell-7.2.23-osx-arm64.pkg][14] - PowerShell 7.5-preview - x64 processors - [powershell-7.5.0-preview.3-osx-x64.pkg][24] - - M1 processors - [powershell-7.5.0-preview.3-arm64.pkg][22] + - Arm64 processors - [powershell-7.5.0-preview.3-arm64.pkg][22] You can double-click the file and follow the prompts, or install it from the terminal using the following commands. Change the name of the file to match the file you downloaded. @@ -189,13 +190,13 @@ current versions are: - PowerShell 7.4 (LTS) - x64 processors - [powershell-7.4.5-osx-x64.tar.gz][21] - - M1 processors - [powershell-7.4.5-osx-arm64.tar.gz][19] + - Arm64 processors - [powershell-7.4.5-osx-arm64.tar.gz][19] - PowerShell 7.2 (LTS) - x64 processors - [powershell-7.2.23-osx-x64.tar.gz][17] - - M1 processors - [powershell-7.2.23-osx-arm64.tar.gz][15] + - Arm64 processors - [powershell-7.2.23-osx-arm64.tar.gz][15] - PowerShell 7.5-preview - x64 processors - [powershell-7.5.0-preview.3-osx-x64.tar.gz][25] - - M1 processors - [powershell-7.5.0-preview.3-osx-arm64.tar.gz][23] + - Arm64 processors - [powershell-7.5.0-preview.3-osx-arm64.tar.gz][23] Use the following commands to install PowerShell from the binary archive. Change the download URL to match the version you want to install.