Skip to content

pnpm run swallows empty strings given as parameters #6594

@deiga

Description

@deiga

pnpm version: 8.5.1

pnpm swallows empty strings from cli arguments, which breaks scripts that might have those

Code to reproduce the issue:

  1. Add a echo script to package.json => "echo":"echo",
  2. run the script pnpm echo "foo" "" "bar"

Expected behavior:

  • > echo "foo" "" "bar"
  • foo bar

Actual behavior:

  • > echo "foo" "bar"
  • foo bar

Additional information:

  • node -v prints: v16.16.0
  • Windows, macOS, or Linux?: maOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions