Skip to content

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

@aaronjwhiteside-appdirect

Description

Currently trying to something like

      const env = {
        GIT_AUTHOR_NAME: "First Last",
        GIT_AUTHOR_EMAIL: "[email protected]",
      };

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: `"[email protected]"`,
      };

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

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