Skip to content

Is it possible to call exec with a command containing new lines ? #177

@CaptainQuirk

Description

@CaptainQuirk

Hi there,

I'm trying to execute the following git command call

git tag -a 1.0.0 -m "My description

- commit 1
- commit 2
- commit 3"

Calling shell.exec(command) with this just hangs there. The new lines are \n inserted as is in the javascript String.

I guess that's not the proper way to do this but I found nothing in your tests checking for the existence of a newline character in the command to execute and act accordingly.

Thanks in advance

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