-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module
Description
Steps to reproduce
Get-Content C:\NonExistentWildcard*.txt
Get-Content C:\NonExistentWildcard*.txt -Raw
Get-Content -Delimiter ([char]0) C:\NonExistentWildcard*.txtExpected behavior
I should get the same error each time:
Get-Content : An object at the specified path C:\NonExistentWildcard*.txt does not exist, or has been filtered by the -Include or -Exclude parameter.
Actual behavior
Three different errors:
Get-Content : An object at the specified path C:\NonExistentWildcard*.txt does not exist, or has been filtered by the -Include or -Exclude parameter.
Get-Content : A parameter cannot be found that matches parameter name 'Raw'.
Get-Content : A parameter cannot be found that matches parameter name 'Delimiter'.
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.2
PSEdition Core
GitCommitId v6.0.2
OS Microsoft Windows 10.0.17134
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0 NOTE: This bug exists back to 5.1 at least
suprak and mrp100461
Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module