Skip to content

Environment variables with spaces in them corrupt the command execution. #186

Description

Currently trying to something like

      const env = {
        GIT_AUTHOR_NAME: "First Last",
        GIT_AUTHOR_EMAIL: "test@company.com",
      };

client.commands.run("git add --all", { env })

fails with

env: ‘Last’: No such file or directory

To make this work you need to escape the environment variable value manually.

      const env = {
        GIT_AUTHOR_NAME: `"First Last"`,
        GIT_AUTHOR_EMAIL: `"test@company.com"`,
      };

This shouldn't be needed and should be correctly handled by the SDK.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions