Skip to content

Command fails space in arguments #59

Open

Description

@scottix

In the command and I think the build although haven't tested
If you have a space in the option it will fail to run.

CompileDaemon --build="go build -o program main.go " --command="./program --option=\"1 2\""

Seems to split on spaces which is not always correct.

Activity

  1. githubnemo commented on Feb 7, 2021

    @githubnemo
    Owner

    That's true. I don't think CompileDaemon will ever cover this. Write your command to a shell script instead and invoke that instead. For example:

    command.sh:

    #!/bin/sh
    
    ./program --option="1 2"
    

    run:

    CompileDaemon --command ./command.sh
    
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions