mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Correct case of $NestedPromptLevel special variable
This commit is contained in:
@@ -571,7 +571,7 @@ foo
|
||||
}
|
||||
|
||||
It "Redirected input w/ nested prompt" -Pending:($IsWindows) {
|
||||
$si = NewProcessStartInfo "-noprofile -noexit -c ""`$function:prompt = { 'PS' + ('>'*(`$nestedPromptLevel+1)) + ' ' }""" -RedirectStdIn
|
||||
$si = NewProcessStartInfo "-noprofile -noexit -c ""`$function:prompt = { 'PS' + ('>'*(`$NestedPromptLevel+1)) + ' ' }""" -RedirectStdIn
|
||||
$process = RunPowerShell $si
|
||||
$process.StandardInput.Write("`$host.EnterNestedPrompt()`n")
|
||||
$process.StandardOutput.ReadLine() | Should -Be "PS> `$host.EnterNestedPrompt()"
|
||||
|
||||
Reference in New Issue
Block a user