Skip to content

Commit

Permalink
Merge pull request #11272 from MicrosoftDocs/main
Browse files Browse the repository at this point in the history
7/15/2024 PM Publish
  • Loading branch information
Taojunshen committed Jul 15, 2024
2 parents ab8e57d + 1e51495 commit 7bbb1f1
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 26 deletions.
9 changes: 4 additions & 5 deletions reference/5.1/Microsoft.PowerShell.Core/About/about_Arrays.md
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
9 changes: 4 additions & 5 deletions reference/7.2/Microsoft.PowerShell.Core/About/about_Arrays.md
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
9 changes: 4 additions & 5 deletions reference/7.5/Microsoft.PowerShell.Core/About/about_Arrays.md
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
2 changes: 1 addition & 1 deletion reference/7.5/Microsoft.PowerShell.Utility/Get-Variable.md
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

0 comments on commit 7bbb1f1

Please sign in to comment.