Skip to content

Double "period" (..) in message for System.InvalidOperationException #12497

@ghost

Description

Not sure if this is classified as a bug, since it does not really affect functionality.

Steps to reproduce

try {Start-Process -FilePath "bogus.exe"} catch {Write-Host $PSItem.Exception.Message}

Expected behavior

(Only one period at end of sentence)
This command cannot be run due to the error: The system cannot find the file specified.

Actual behavior

(Two periods at end of sentence)
This command cannot be run due to the error: The system cannot find the file specified..

Environment data

Same results for both PS 7.0.0 and 7.1.0-preview.2 - I did not try preivew.1

Name                           Value
----                           -----
PSVersion                      7.0.0
PSEdition                      Core
GitCommitId                    7.0.0
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0


Name                           Value
----                           -----
PSVersion                      7.1.0-preview.2
PSEdition                      Core
GitCommitId                    7.1.0-preview.2
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    First-Time-IssueEasy issues first time contributors can work on to learn about this projectIssue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions