Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 (`"`).
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:

Expand Down Expand Up @@ -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]

<!-- link references -->
[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
Original file line number Diff line number Diff line change
Expand Up @@ -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 (`"`).
Expand All @@ -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

Expand Down Expand Up @@ -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:

Expand Down Expand Up @@ -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]

<!-- link references -->
[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
Original file line number Diff line number Diff line change
Expand Up @@ -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 (`"`).
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:

Expand Down Expand Up @@ -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]

<!-- link references -->
[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
Original file line number Diff line number Diff line change
Expand Up @@ -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 (`"`).
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:

Expand Down Expand Up @@ -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]

<!-- link references -->
[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
Original file line number Diff line number Diff line change
@@ -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
---

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down