Skip to content

Commit 337eb29

Browse files
Fix automatic variable case (#11830)
1 parent 091cb95 commit 337eb29

40 files changed

Lines changed: 59 additions & 59 deletions

reference/5.1/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ non-zero integer.
205205
### `$foreach`
206206

207207
Contains the enumerator (not the resulting values) of a [ForEach][56] loop. The
208-
`$ForEach` variable exists only while the `ForEach` loop is running; it's
208+
`$foreach` variable exists only while the `ForEach` loop is running; it's
209209
deleted after the loop is completed.
210210

211211
Enumerators contain properties and methods you can use to retrieve loop values

reference/5.1/Microsoft.PowerShell.Core/About/about_Data_Sections.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ is limited to the following elements:
4646

4747
- All PowerShell operators, except `-match`
4848
- `If`, `Else`, and `ElseIf` statements
49-
- The following automatic variables: `$PsCulture`, `$PsUICulture`, `$True`,
50-
`$false`, and `$Null`
49+
- The following automatic variables: `$PSCulture`, `$PSUICulture`, `$true`,
50+
`$false`, and `$null`
5151
- Comments
5252
- Pipelines
5353
- Statements separated by semicolons (`;`)

reference/5.1/Microsoft.PowerShell.Core/About/about_Debuggers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ for the following automatic variables:
127127
```powershell
128128
$_
129129
$args
130-
$Input
130+
$input
131131
$MyInvocation
132132
$PSBoundParameters
133133
```

reference/5.1/Microsoft.PowerShell.Core/About/about_FileSystem_Provider.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ system files and folders, use the **Attributes** parameter.
581581

582582
### NewerThan \<DateTime\>
583583

584-
Returns `$True` when the `LastWriteTime` value of a file is greater than the
584+
Returns `$true` when the `LastWriteTime` value of a file is greater than the
585585
specified date. Otherwise, it returns `$false`.
586586

587587
Enter a [DateTime][01] object, such as one that the [Get-Date][37] cmdlet
@@ -594,7 +594,7 @@ returns, or a string that can be converted to a **DateTime** object, such as
594594

595595
### OlderThan \<DateTime\>
596596

597-
Returns `$True` when the `LastWriteTime` value of a file is less than the
597+
Returns `$true` when the `LastWriteTime` value of a file is less than the
598598
specified date. Otherwise, it returns `$false`.
599599

600600
Enter a **DateTime** object, such as one that the `Get-Date` cmdlet

reference/5.1/Microsoft.PowerShell.Core/About/about_Functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ processing, and an `end` block for one-time post-processing.
119119
```powershell
120120
Function Test-ScriptCmdlet
121121
{
122-
[CmdletBinding(SupportsShouldProcess=$True)]
122+
[CmdletBinding(SupportsShouldProcess=$true)]
123123
Param ($Parameter1)
124124
begin{}
125125
process{}

reference/5.1/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ processing, and an `end` block for one-time post-processing.
5353
```powershell
5454
Function Test-ScriptCmdlet
5555
{
56-
[CmdletBinding(SupportsShouldProcess=$True)]
56+
[CmdletBinding(SupportsShouldProcess=$true)]
5757
param ($Parameter1)
5858
begin{}
5959
process{}

reference/5.1/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ function Test-UserDrivePath{
12031203
[ValidateUserDrive()]
12041204
[string]$Path
12051205
)
1206-
$True
1206+
$true
12071207
}
12081208
12091209
Test-UserDrivePath -Path C:\

reference/5.1/Microsoft.PowerShell.Core/About/about_Functions_CmdletBindingAttribute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ lists the changes that the command would make, instead of running the command.
174174
## PositionalBinding
175175

176176
The **PositionalBinding** argument determines whether parameters in the
177-
function are positional by default. The default value is `$True`. You can use
177+
function are positional by default. The default value is `$true`. You can use
178178
the **PositionalBinding** argument with a value of `$false` to disable
179179
positional binding.
180180

@@ -188,7 +188,7 @@ function command.
188188
When parameters are not positional (they are "named"), the parameter
189189
name (or an abbreviation or alias of the name) is required in the command.
190190

191-
When **PositionalBinding** is `$True`, function parameters are positional by
191+
When **PositionalBinding** is `$true`, function parameters are positional by
192192
default. PowerShell assigns position number to the parameters in the order in
193193
which they are declared in the function.
194194

reference/5.1/Microsoft.PowerShell.Core/About/about_Group_Policy_Settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Import-Module <Module-Name>
8080

8181
To turn on module logging for all sessions on a particular computer, add the
8282
previous commands to the 'All Users' PowerShell profile
83-
(`$Profile.AllUsersAllHosts`).
83+
(`$PROFILE.AllUsersAllHosts`).
8484

8585
For more information about module logging, see
8686
[about_Modules](about_Modules.md).

reference/5.1/Microsoft.PowerShell.Core/About/about_Language_Modes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ mode:
166166

167167
- `$PSCulture`
168168
- `$PSUICulture`
169-
- `$True`
169+
- `$true`
170170
- `$false`
171-
- `$Null`
171+
- `$null`
172172

173173
Module manifests are loaded in `RestrictedLanguage` mode and may use these
174174
additional variables:

0 commit comments

Comments
 (0)