Skip to content

[BUG] Regression in 8.13.0 on Windows: echo 5% prints just 5 instead of 5% #5285

@lydell

Description

@lydell

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

$ npm test

> test
> echo 5%

5

This happens since 8.13.0.

Expected Behavior

$ npm test

> test
> echo 5%

5%

8.12.2 prints 5% as expected.

Steps To Reproduce

  1. Use Windows

  2. With this package.json:

    {
      "private": true,
      "scripts": {
        "test": "echo 5%"
      }
    }
  3. Run npm test

  4. Notice how the percentage sign is gone.

Environment

  • npm: 8.16.0
  • Node.js: 18.7.0
  • OS Name: Windows 10
  • System Model Name: PC

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions