Skip to content

escape quotes in commands #35

@max-mapper

Description

@max-mapper

If you add to your config e.g. bash -c "echo foo", it gets turned into mon "bash -c "echo foo"" which means the inner quotes essentially get ignored and the running process will look like mon bash -c echo foo, when it should look like mon bash -c "echo foo".

The fix is to escape the inner quotes, the user can do this manually but I think we should probably do this for them. I wonder if it is as simple as simply replacing " with \"?

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