Skip to content

tox drops double quotes from executed commands output, making them confusing #845

@ssbarnea

Description

@ssbarnea

Apparently when tox prints the executed commands it does not keep them in their original form and drops the double quotes, making them really confusing and invalid.

Content in tox.ini:

commands =
        bash -c "git ls-tree --full-tree --name-only -r HEAD plugins | grep -E '\.ya?ml$' | xargs -I FILE -n1 -P 4 ansible-lint --force-color -q -p -x $SKIPPED FILE"

Sample output:

ansible-lint runtests: commands[1] | bash -c git ls-tree --full-tree --name-only -r HEAD plugins | grep -E '\.ya?ml$' | xargs -I FILE -n1 -P 4 ansible-lint --force-color -q -p -x $SKIPPED FILE

As you can see the quotes that mark the bash command to be executed are lost, so if anyone tries to copy/paste the command, it will fail to run because what is printed on screen is invalid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:normalaffects many people or has quite an impactlevel:mediumrought estimate that this might be neither easy nor hard to implement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions