mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix the indicator for redirecting standard input (#2749)
This commit is contained in:
committed by
Sergei Vorobev
parent
172b2234fc
commit
20a0ba041c
@@ -15,6 +15,18 @@ Describe "NativeLinuxCommands" -tags "CI" {
|
||||
It "Should find Application touch" -Skip:$IsWindows {
|
||||
(get-command touch).CommandType | Should Be Application
|
||||
}
|
||||
|
||||
It "Should not redirect standard input if native command is the first command in pipeline (1)" -Skip:$IsWindows {
|
||||
stty | ForEach-Object -Begin { $out = @() } -Process { $out += $_ }
|
||||
$out.Length -gt 0 | Should Be $true
|
||||
$out[0] -like "speed * baud; line =*" | Should Be $true
|
||||
}
|
||||
|
||||
It "Should not redirect standard input if native command is the first command in pipeline (2)" -Skip:$IsWindows {
|
||||
$out = stty
|
||||
$out.Length -gt 0 | Should Be $true
|
||||
$out[0] -like "speed * baud; line =*" | Should Be $true
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Scripts with extensions" -tags "CI" {
|
||||
|
||||
Reference in New Issue
Block a user