Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CLI: when installed as a .NET global tool (dotnet tool), argument parsing is broken #11747

Copy link
Copy link
@mklement0

Description

@mklement0
Issue body actions

Note:

Steps to reproduce

# NOTE: 
#  * Problem shows if `pwsh` was installed via `dotnet tool --global`
#  * Run from *cmd.exe* or *bash*
pwsh -noprofile -c "write-output 1 \"2 3\""

Expected behavior

1
2 3

That is, the escaped embedded double quotes (\") should be honored, resulting in two outputs, 1, and '2 3'.

This is indeed what happens with a regularly installed version.

Actual behavior

1
2
3

This output suggests that the embedded escaped double quotes (\") were unexpectedly eaten.

Environment data

PowerShell Core 7.0 # as a global .NET tool, all platforms
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issueIssue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Maintainers-Buildspecific to affecting the buildspecific to affecting the build

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.