Skip to content

Commit b0c3b79

Browse files
author
Sean Wheeler
committed
found more backslashes
1 parent ab67cac commit b0c3b79

File tree

5 files changed

+35
-35
lines changed

5 files changed

+35
-35
lines changed

reference/3.0/Microsoft.PowerShell.Core/About/about_Preference_Variables.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ This example shows the effect of the SilentlyContinue value.
375375

376376
```powershell
377377
PS> # Change the value of the preference.
378-
PS> \$ErrorActionPreference = "SilentlyContinue"
378+
PS> $ErrorActionPreference = "SilentlyContinue"
379379
380380
PS> # Generate an error message.
381381
PS> write-error "Hello, World"
@@ -854,7 +854,7 @@ To change the separator, add the \$OFS variable by assigning a value to it.
854854
To work correctly, the variable must be named \$OFS.
855855

856856
```powershell
857-
PS> $OFS = "+" # Create \$OFS and assign a "+"
857+
PS> $OFS = "+" # Create $OFS and assign a "+"
858858
859859
PS> [string]$array # Repeat the command
860860
1+2+3 # Plus signs separate the elements
@@ -865,7 +865,7 @@ To restore the default behavior, you can assign a space (" ") to the value of
865865
verifies that the separator is a space.
866866

867867
```powershell
868-
PS> Remove-Variable OFS # Delete \$OFS
868+
PS> Remove-Variable OFS # Delete $OFS
869869
PS>
870870
871871
PS> [string]$array # Repeat the command
@@ -1417,8 +1417,8 @@ This example shows how to delete a file when the value of \$WhatIfPreference
14171417
is 1. It uses the WhatIf parameter with a value of \$false.
14181418

14191419
```powershell
1420-
PS> # Use the WhatIf parameter with \$false.
1421-
PS> remove-item test.txt -whatif:\$false
1420+
PS> # Use the WhatIf parameter with $false.
1421+
PS> remove-item test.txt -whatif:$false
14221422
```
14231423

14241424
This example demonstrates that some cmdlets support WhatIf behavior and others
@@ -1443,8 +1443,8 @@ PS> # A Stop-Process command uses WhatIf.
14431443
PS> stop-process -name winword
14441444
What if: Performing operation "Stop-Process" on Target "WINWORD (2312)".
14451445
1446-
PS> stop-process -name winword -whatif:\$false
1447-
PS> # WhatIf:\$false overrides the preference.
1446+
PS> stop-process -name winword -whatif:$false
1447+
PS> # WhatIf:$false overrides the preference.
14481448
14491449
PS> # Verify that the process is stopped.
14501450
PS> get-process winword

reference/4.0/Microsoft.PowerShell.Core/About/about_Preference_Variables.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ This example shows the effect of the SilentlyContinue value.
375375

376376
```powershell
377377
PS> # Change the value of the preference.
378-
PS> \$ErrorActionPreference = "SilentlyContinue"
378+
PS> $ErrorActionPreference = "SilentlyContinue"
379379
380380
PS> # Generate an error message.
381381
PS> write-error "Hello, World"
@@ -854,7 +854,7 @@ To change the separator, add the \$OFS variable by assigning a value to it.
854854
To work correctly, the variable must be named \$OFS.
855855

856856
```powershell
857-
PS> $OFS = "+" # Create \$OFS and assign a "+"
857+
PS> $OFS = "+" # Create $OFS and assign a "+"
858858
859859
PS> [string]$array # Repeat the command
860860
1+2+3 # Plus signs separate the elements
@@ -865,7 +865,7 @@ To restore the default behavior, you can assign a space (" ") to the value of
865865
verifies that the separator is a space.
866866

867867
```powershell
868-
PS> Remove-Variable OFS # Delete \$OFS
868+
PS> Remove-Variable OFS # Delete $OFS
869869
PS>
870870
871871
PS> [string]$array # Repeat the command
@@ -1417,8 +1417,8 @@ This example shows how to delete a file when the value of \$WhatIfPreference
14171417
is 1. It uses the WhatIf parameter with a value of \$false.
14181418

14191419
```powershell
1420-
PS> # Use the WhatIf parameter with \$false.
1421-
PS> remove-item test.txt -whatif:\$false
1420+
PS> # Use the WhatIf parameter with $false.
1421+
PS> remove-item test.txt -whatif:$false
14221422
```
14231423

14241424
This example demonstrates that some cmdlets support WhatIf behavior and others
@@ -1443,8 +1443,8 @@ PS> # A Stop-Process command uses WhatIf.
14431443
PS> stop-process -name winword
14441444
What if: Performing operation "Stop-Process" on Target "WINWORD (2312)".
14451445
1446-
PS> stop-process -name winword -whatif:\$false
1447-
PS> # WhatIf:\$false overrides the preference.
1446+
PS> stop-process -name winword -whatif:$false
1447+
PS> # WhatIf:$false overrides the preference.
14481448
14491449
PS> # Verify that the process is stopped.
14501450
PS> get-process winword

reference/5.0/Microsoft.PowerShell.Core/About/about_Preference_Variables.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ This example shows the effect of the SilentlyContinue value.
375375

376376
```powershell
377377
PS> # Change the value of the preference.
378-
PS> \$ErrorActionPreference = "SilentlyContinue"
378+
PS> $ErrorActionPreference = "SilentlyContinue"
379379
380380
PS> # Generate an error message.
381381
PS> write-error "Hello, World"
@@ -854,7 +854,7 @@ To change the separator, add the \$OFS variable by assigning a value to it.
854854
To work correctly, the variable must be named \$OFS.
855855

856856
```powershell
857-
PS> $OFS = "+" # Create \$OFS and assign a "+"
857+
PS> $OFS = "+" # Create $OFS and assign a "+"
858858
859859
PS> [string]$array # Repeat the command
860860
1+2+3 # Plus signs separate the elements
@@ -865,7 +865,7 @@ To restore the default behavior, you can assign a space (" ") to the value of
865865
verifies that the separator is a space.
866866

867867
```powershell
868-
PS> Remove-Variable OFS # Delete \$OFS
868+
PS> Remove-Variable OFS # Delete $OFS
869869
PS>
870870
871871
PS> [string]$array # Repeat the command
@@ -1417,8 +1417,8 @@ This example shows how to delete a file when the value of \$WhatIfPreference
14171417
is 1. It uses the WhatIf parameter with a value of \$false.
14181418

14191419
```powershell
1420-
PS> # Use the WhatIf parameter with \$false.
1421-
PS> remove-item test.txt -whatif:\$false
1420+
PS> # Use the WhatIf parameter with $false.
1421+
PS> remove-item test.txt -whatif:$false
14221422
```
14231423

14241424
This example demonstrates that some cmdlets support WhatIf behavior and others
@@ -1443,8 +1443,8 @@ PS> # A Stop-Process command uses WhatIf.
14431443
PS> stop-process -name winword
14441444
What if: Performing operation "Stop-Process" on Target "WINWORD (2312)".
14451445
1446-
PS> stop-process -name winword -whatif:\$false
1447-
PS> # WhatIf:\$false overrides the preference.
1446+
PS> stop-process -name winword -whatif:$false
1447+
PS> # WhatIf:$false overrides the preference.
14481448
14491449
PS> # Verify that the process is stopped.
14501450
PS> get-process winword

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ This example shows the effect of the SilentlyContinue value.
375375

376376
```powershell
377377
PS> # Change the value of the preference.
378-
PS> \$ErrorActionPreference = "SilentlyContinue"
378+
PS> $ErrorActionPreference = "SilentlyContinue"
379379
380380
PS> # Generate an error message.
381381
PS> write-error "Hello, World"
@@ -854,7 +854,7 @@ To change the separator, add the \$OFS variable by assigning a value to it.
854854
To work correctly, the variable must be named \$OFS.
855855

856856
```powershell
857-
PS> $OFS = "+" # Create \$OFS and assign a "+"
857+
PS> $OFS = "+" # Create $OFS and assign a "+"
858858
859859
PS> [string]$array # Repeat the command
860860
1+2+3 # Plus signs separate the elements
@@ -865,7 +865,7 @@ To restore the default behavior, you can assign a space (" ") to the value of
865865
verifies that the separator is a space.
866866

867867
```powershell
868-
PS> Remove-Variable OFS # Delete \$OFS
868+
PS> Remove-Variable OFS # Delete $OFS
869869
PS>
870870
871871
PS> [string]$array # Repeat the command
@@ -1417,8 +1417,8 @@ This example shows how to delete a file when the value of \$WhatIfPreference
14171417
is 1. It uses the WhatIf parameter with a value of \$false.
14181418

14191419
```powershell
1420-
PS> # Use the WhatIf parameter with \$false.
1421-
PS> remove-item test.txt -whatif:\$false
1420+
PS> # Use the WhatIf parameter with $false.
1421+
PS> remove-item test.txt -whatif:$false
14221422
```
14231423

14241424
This example demonstrates that some cmdlets support WhatIf behavior and others
@@ -1443,8 +1443,8 @@ PS> # A Stop-Process command uses WhatIf.
14431443
PS> stop-process -name winword
14441444
What if: Performing operation "Stop-Process" on Target "WINWORD (2312)".
14451445
1446-
PS> stop-process -name winword -whatif:\$false
1447-
PS> # WhatIf:\$false overrides the preference.
1446+
PS> stop-process -name winword -whatif:$false
1447+
PS> # WhatIf:$false overrides the preference.
14481448
14491449
PS> # Verify that the process is stopped.
14501450
PS> get-process winword

reference/6/Microsoft.PowerShell.Core/About/about_Preference_Variables.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ This example shows the effect of the SilentlyContinue value.
375375

376376
```powershell
377377
PS> # Change the value of the preference.
378-
PS> \$ErrorActionPreference = "SilentlyContinue"
378+
PS> $ErrorActionPreference = "SilentlyContinue"
379379
380380
PS> # Generate an error message.
381381
PS> write-error "Hello, World"
@@ -854,7 +854,7 @@ To change the separator, add the \$OFS variable by assigning a value to it.
854854
To work correctly, the variable must be named \$OFS.
855855

856856
```powershell
857-
PS> $OFS = "+" # Create \$OFS and assign a "+"
857+
PS> $OFS = "+" # Create $OFS and assign a "+"
858858
859859
PS> [string]$array # Repeat the command
860860
1+2+3 # Plus signs separate the elements
@@ -865,7 +865,7 @@ To restore the default behavior, you can assign a space (" ") to the value of
865865
verifies that the separator is a space.
866866

867867
```powershell
868-
PS> Remove-Variable OFS # Delete \$OFS
868+
PS> Remove-Variable OFS # Delete $OFS
869869
PS>
870870
871871
PS> [string]$array # Repeat the command
@@ -1417,8 +1417,8 @@ This example shows how to delete a file when the value of \$WhatIfPreference
14171417
is 1. It uses the WhatIf parameter with a value of \$false.
14181418

14191419
```powershell
1420-
PS> # Use the WhatIf parameter with \$false.
1421-
PS> remove-item test.txt -whatif:\$false
1420+
PS> # Use the WhatIf parameter with $false.
1421+
PS> remove-item test.txt -whatif:$false
14221422
```
14231423

14241424
This example demonstrates that some cmdlets support WhatIf behavior and others
@@ -1443,8 +1443,8 @@ PS> # A Stop-Process command uses WhatIf.
14431443
PS> stop-process -name winword
14441444
What if: Performing operation "Stop-Process" on Target "WINWORD (2312)".
14451445
1446-
PS> stop-process -name winword -whatif:\$false
1447-
PS> # WhatIf:\$false overrides the preference.
1446+
PS> stop-process -name winword -whatif:$false
1447+
PS> # WhatIf:$false overrides the preference.
14481448
14491449
PS> # Verify that the process is stopped.
14501450
PS> get-process winword

0 commit comments

Comments
 (0)