File tree Expand file tree Collapse file tree 5 files changed +20
-10
lines changed
5.1/Microsoft.PowerShell.Core/About
7.0/Microsoft.PowerShell.Core/About
7.1/Microsoft.PowerShell.Core/About
7.2/Microsoft.PowerShell.Core/About
7.3/Microsoft.PowerShell.Core/About Expand file tree Collapse file tree 5 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -200,15 +200,15 @@ prevent PowerShell from misinterpreting the parentheses.
200200icacls X:\VMS /grant Dom\HVAdmin:`(CI`)`(OI`)F
201201```
202202
203- ### The stop-parsing and end-of-parameters tokens
204-
205203Beginning in PowerShell 3.0, you can use the _ stop-parsing_ (` --% ` ) and
206204_ end-of-parameters_ tokens (` -- ` ) to stop PowerShell from interpreting input as
207205PowerShell commands or expressions.
208206
209207> [ !NOTE]
210208> The stop-parsing token is only intended for use on Windows platforms.
211209
210+ ### The stop-parsing token
211+
212212When calling a native command, place the stop-parsing token before the program
213213arguments. This technique is much easier than using escape characters to
214214prevent misinterpretation.
@@ -239,6 +239,8 @@ variable the token is passed through as-is.
239239You cannot use stream redirection (like ` >file.txt ` ) because they are passed
240240verbatim as arguments to the target command.
241241
242+ ### The end-of-parameters token
243+
242244The end-of-parameters token (` -- ` ) indicates that all arguments following it
243245are to be passed in their actual form as though double quotes were placed
244246around them. For example, using ` -- ` you can output the string ` -InputObject `
Original file line number Diff line number Diff line change @@ -200,15 +200,15 @@ prevent PowerShell from misinterpreting the parentheses.
200200icacls X:\VMS /grant Dom\HVAdmin:`(CI`)`(OI`)F
201201```
202202
203- ### The stop-parsing and end-of-parameters tokens
204-
205203Beginning in PowerShell 3.0, you can use the _ stop-parsing_ (` --% ` ) and
206204_ end-of-parameters_ tokens (` -- ` ) to stop PowerShell from interpreting input as
207205PowerShell commands or expressions.
208206
209207> [ !NOTE]
210208> The stop-parsing token is only intended for use on Windows platforms.
211209
210+ ### The stop-parsing token
211+
212212When calling a native command, place the stop-parsing token before the program
213213arguments. This technique is much easier than using escape characters to
214214prevent misinterpretation.
@@ -239,6 +239,8 @@ variable the token is passed through as-is.
239239You cannot use stream redirection (like ` >file.txt ` ) because they are passed
240240verbatim as arguments to the target command.
241241
242+ ### The end-of-parameters token
243+
242244The end-of-parameters token (` -- ` ) indicates that all arguments following it
243245are to be passed in their actual form as though double quotes were placed
244246around them. For example, using ` -- ` you can output the string ` -InputObject `
Original file line number Diff line number Diff line change @@ -200,15 +200,15 @@ prevent PowerShell from misinterpreting the parentheses.
200200icacls X:\VMS /grant Dom\HVAdmin:`(CI`)`(OI`)F
201201```
202202
203- ### The stop-parsing and end-of-parameters tokens
204-
205203Beginning in PowerShell 3.0, you can use the _ stop-parsing_ (` --% ` ) and
206204_ end-of-parameters_ tokens (` -- ` ) to stop PowerShell from interpreting input as
207205PowerShell commands or expressions.
208206
209207> [ !NOTE]
210208> The stop-parsing token is only intended for use on Windows platforms.
211209
210+ ### The stop-parsing token
211+
212212When calling a native command, place the stop-parsing token before the program
213213arguments. This technique is much easier than using escape characters to
214214prevent misinterpretation.
@@ -239,6 +239,8 @@ variable the token is passed through as-is.
239239You cannot use stream redirection (like ` >file.txt ` ) because they are passed
240240verbatim as arguments to the target command.
241241
242+ ### The end-of-parameters token
243+
242244The end-of-parameters token (` -- ` ) indicates that all arguments following it
243245are to be passed in their actual form as though double quotes were placed
244246around them. For example, using ` -- ` you can output the string ` -InputObject `
Original file line number Diff line number Diff line change @@ -200,15 +200,15 @@ prevent PowerShell from misinterpreting the parentheses.
200200icacls X:\VMS /grant Dom\HVAdmin:`(CI`)`(OI`)F
201201```
202202
203- ### The stop-parsing and end-of-parameters tokens
204-
205203Beginning in PowerShell 3.0, you can use the _ stop-parsing_ (` --% ` ) and
206204_ end-of-parameters_ tokens (` -- ` ) to stop PowerShell from interpreting input as
207205PowerShell commands or expressions.
208206
209207> [ !NOTE]
210208> The stop-parsing token is only intended for use on Windows platforms.
211209
210+ ### The stop-parsing token
211+
212212When calling a native command, place the stop-parsing token before the program
213213arguments. This technique is much easier than using escape characters to
214214prevent misinterpretation.
@@ -239,6 +239,8 @@ variable the token is passed through as-is.
239239You cannot use stream redirection (like ` >file.txt ` ) because they are passed
240240verbatim as arguments to the target command.
241241
242+ ### The end-of-parameters token
243+
242244The end-of-parameters token (` -- ` ) indicates that all arguments following it
243245are to be passed in their actual form as though double quotes were placed
244246around them. For example, using ` -- ` you can output the string ` -InputObject `
Original file line number Diff line number Diff line change @@ -200,15 +200,15 @@ prevent PowerShell from misinterpreting the parentheses.
200200icacls X:\VMS /grant Dom\HVAdmin:`(CI`)`(OI`)F
201201```
202202
203- ### The stop-parsing and end-of-parameters tokens
204-
205203Beginning in PowerShell 3.0, you can use the _ stop-parsing_ (` --% ` ) and
206204_ end-of-parameters_ tokens (` -- ` ) to stop PowerShell from interpreting input as
207205PowerShell commands or expressions.
208206
209207> [ !NOTE]
210208> The stop-parsing token is only intended for use on Windows platforms.
211209
210+ ### The stop-parsing token
211+
212212When calling a native command, place the stop-parsing token before the program
213213arguments. This technique is much easier than using escape characters to
214214prevent misinterpretation.
@@ -239,6 +239,8 @@ variable the token is passed through as-is.
239239You cannot use stream redirection (like ` >file.txt ` ) because they are passed
240240verbatim as arguments to the target command.
241241
242+ ### The end-of-parameters token
243+
242244The end-of-parameters token (` -- ` ) indicates that all arguments following it
243245are to be passed in their actual form as though double quotes were placed
244246around them. For example, using ` -- ` you can output the string ` -InputObject `
You can’t perform that action at this time.
0 commit comments