Repository navigation
Open
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.WG-Enginecore PowerShell engine, interpreter, and runtimeWG-NeedsReviewNeeds a review by the labeled Working Group
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
[System.Management.Automation.Language.Parser]::ParseInput("echo --%", [ref]$null, [ref]$null).EndBlock.Statements.PipelineElements.CommandElementsExpected behavior
PS> [System.Management.Automation.Language.Parser]::ParseInput("echo --%", [ref]$null, [ref]$null).EndBlock.Statements.PipelineElements.CommandElements
StringConstantType : BareWord
Value : echo
StaticType : System.String
Extent : echo
Parent : echo --%
StringConstantType : BareWord
Value : --%
StaticType : System.String
Extent : --%
Parent : echo --%Actual behavior
PS> [System.Management.Automation.Language.Parser]::ParseInput("echo --%", [ref]$null, [ref]$null).EndBlock.Statements.PipelineElements.CommandElements
StringConstantType : BareWord
Value : echo
StaticType : System.String
Extent : echo
Parent : echo --%
StringConstantType : BareWord
Value : --%
StaticType : System.String
Extent : --%
Parent : echo --%
StringConstantType : BareWord
Value :
StaticType : System.String
Extent :
Parent : echo --%Error details
Environment data
Name Value
---- -----
PSVersion 7.5.3
PSEdition Core
GitCommitId 7.5.3
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Visuals
No response
Metadata
Metadata
Assignees
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.WG-Enginecore PowerShell engine, interpreter, and runtimeWG-NeedsReviewNeeds a review by the labeled Working Group
Activity