Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7/15/2024 PM Publish #11272

Merged
merged 2 commits into from
Jul 15, 2024
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 @@ -643,10 +643,10 @@ The following example shows how to select all odd numbers from the array.
9
```

This example show how to select the strings that aren't empty.
The next example shows how to select all non-empty strings.

```powershell
('hi', '', 'there').Where({$_.Length})
('hi', '', 'there').Where{ $_ }
```

```Output
Expand Down Expand Up @@ -1047,11 +1047,10 @@ Thursday, June 24, 2021 1:23:30 PM
```

The `set_LastWriteTime()` method is a _hidden_ member of the **FileInfo**
object. The following example shows how to find members that have a _hidden_
`set` method.
object. The following example shows how to find _hidden_ `set` methods.

```powershell
$files | Get-Member | Where-Object Definition -like '*set;*'
$files | Get-Member -Force -Name set_*
```

```Output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ Accept wildcard characters: False
### -InformationVariable

Introduced in PowerShell 5.0. When you use the **InformationVariable** common
parameter, information records are stored in a the variable specify by the
parameter, information records are stored in the variable specified by the
parameter. And PowerShell cmdlet can write information records to the
**Information** stream. You can also use the `Write-Information` cmdlet to
write information records.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ determines the order in which PowerShell connects to the remote computers.
However, the results appear in the order that the data is received from the
remote computers.

You can use the `Sort-Object` cmdlet to sort the results on on the
You can use the `Sort-Object` cmdlet to sort the results on the
**PSComputerName**. When you any other property of the object, the results from
different computers are interspersed interleaved in the output

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ Specifies the functions that the module exports. Wildcards are permitted.
You can use this parameter to restrict the functions that are exported by the module. It can remove
functions from the list of exported aliases, but it can't add functions to the list.

If you omit this parameter, `New-ModuleManifest` creates an **FunctionsToExport** key with a value
If you omit this parameter, `New-ModuleManifest` creates a **FunctionsToExport** key with a value
of `*` (all), meaning that all functions defined in the module are exported by the manifest.

```yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ https://en.wikipedia.org/wiki/PowerShell

### Example 2: Get the content of the clipboard in a specific format

In this example we copied files to the clipboard in Windows Explorerby selecting them and pressing
In this example we copied files to the clipboard in Windows Explorer by selecting them and pressing
<kbd>Ctrl-C</kbd>. Using the following command, you can access the contents of the clipboard as a
list of files:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -643,10 +643,10 @@ The following example shows how to select all odd numbers from the array.
9
```

This example show how to select the strings that aren't empty.
The next example shows how to select all non-empty strings.

```powershell
('hi', '', 'there').Where({$_.Length})
('hi', '', 'there').Where{ $_ }
```

```Output
Expand Down Expand Up @@ -1055,11 +1055,10 @@ Thursday, June 24, 2021 1:23:30 PM
```

The `set_LastWriteTime()` method is a _hidden_ member of the **FileInfo**
object. The following example shows how to find members that have a _hidden_
`set` method.
object. The following example shows how to find _hidden_ `set` methods.

```powershell
$files | Get-Member | Where-Object Definition -like '*set;*'
$files | Get-Member -Force -Name set_*
```

```Output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ the `C:\Bin` directory.
> Unlike PowerShell's _argument_ mode, object methods execute in _expression_
> mode, which is a pass-through to the .NET framework that PowerShell is built
> on. In _expression_ mode **bareword** arguments (unquoted strings) are not
> allowed. You can see this difference when using a the path as a parameter,
> allowed. You can see this difference when using the path as a parameter,
> versus the path as an argument. You can read more about parsing modes in
> [about_Parsing](about_Parsing.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ determines the order in which PowerShell connects to the remote computers.
However, the results appear in the order that the data is received from the
remote computers.

You can use the `Sort-Object` cmdlet to sort the results on on the
You can use the `Sort-Object` cmdlet to sort the results on the
**PSComputerName**. When you any other property of the object, the results from
different computers are interspersed interleaved in the output

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ the `C:\Bin` directory.
> Unlike PowerShell's _argument_ mode, object methods execute in _expression_
> mode, which is a pass-through to the .NET framework that PowerShell is built
> on. In _expression_ mode **bareword** arguments (unquoted strings) are not
> allowed. You can see this difference when using a the path as a parameter,
> allowed. You can see this difference when using the path as a parameter,
> versus the path as an argument. You can read more about parsing modes in
> [about_Parsing](about_Parsing.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ determines the order in which PowerShell connects to the remote computers.
However, the results appear in the order that the data is received from the
remote computers.

You can use the `Sort-Object` cmdlet to sort the results on on the
You can use the `Sort-Object` cmdlet to sort the results on the
**PSComputerName**. When you any other property of the object, the results from
different computers are interspersed interleaved in the output

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -643,10 +643,10 @@ The following example shows how to select all odd numbers from the array.
9
```

This example show how to select the strings that aren't empty.
The next example shows how to select all non-empty strings.

```powershell
('hi', '', 'there').Where({$_.Length})
('hi', '', 'there').Where{ $_ }
```

```Output
Expand Down Expand Up @@ -1055,11 +1055,10 @@ Thursday, June 24, 2021 1:23:30 PM
```

The `set_LastWriteTime()` method is a _hidden_ member of the **FileInfo**
object. The following example shows how to find members that have a _hidden_
`set` method.
object. The following example shows how to find _hidden_ `set` methods.

```powershell
$files | Get-Member | Where-Object Definition -like '*set;*'
$files | Get-Member -Force -Name set_*
```

```Output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ determines the order in which PowerShell connects to the remote computers.
However, the results appear in the order that the data is received from the
remote computers.

You can use the `Sort-Object` cmdlet to sort the results on on the
You can use the `Sort-Object` cmdlet to sort the results on the
**PSComputerName**. When you any other property of the object, the results from
different computers are interspersed interleaved in the output

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ You can pipe a string that contains the variable name to this cmdlet.

### System.Management.Automation.PSVariable

By default, this cmdlet returns a **AutomationPSVariable** object for each variable that it gets.
By default, this cmdlet returns an **AutomationPSVariable** object for each variable that it gets.
The object type depends on the variable.

### System.Object[]
Expand Down
2 changes: 1 addition & 1 deletion reference/docs-conceptual/lang-spec/chapter-08.md
Original file line number Diff line number Diff line change
Expand Up @@ -1559,7 +1559,7 @@ inlinescript-statement:
The inlinescript statement contains zero or more statements that are executed in an implementation
defined manner.

A inlinescript statement is only allowed in a workflow ([§8.10.2][§8.10.2]).
An inlinescript statement is only allowed in a workflow ([§8.10.2][§8.10.2]).

## 8.14 Parameter binding

Expand Down