File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
src/System.Management.Automation/engine
test/powershell/Modules/Microsoft.PowerShell.Core Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -390,6 +390,8 @@ protected override void BeginProcessing()
390
390
/// </summary>
391
391
protected override void ProcessRecord ( )
392
392
{
393
+ _commandsWritten . Clear ( ) ;
394
+
393
395
// Module and FullyQualifiedModule should not be specified at the same time.
394
396
// Throw out terminating error if this is the case.
395
397
if ( _isModuleSpecified && _isFullyQualifiedModuleSpecified )
Original file line number Diff line number Diff line change @@ -263,4 +263,10 @@ Describe "Get-Command Tests" -Tags "CI" {
263
263
VerifyDynamicParametersExist - cmdlet $results [0 ] - parameterNames $paramName
264
264
VerifyParameterType - cmdlet $results [0 ] - parameterName $paramName - ParameterType System.Text.Encoding
265
265
}
266
+
267
+ It " Piping more than one CommandInfo works" {
268
+ $result = Get-Command - Name Add-Content , Get-Content | Get-Command
269
+ $result.Count | Should - Be 2
270
+ $result.Name | Should - Be " Add-Content" , " Get-Content"
271
+ }
266
272
}
You can’t perform that action at this time.
0 commit comments