Skip to content

--test-cmd is broken #439

@Thanatermesis

Description

@Thanatermesis

Issue

Simple test:

echo foo > test.txt
cecli --yes-always --test-cmd "true" --auto-test --message "change foo to bar" test.txt

For some reason it tries to run the cmd using my shell or something like that, I know that because it shows my PS prompt, but the command should be simply run as a command, not from a shell and even less from a "login mode shell", this leads also to issues making the feature broken:

And for some reason it detects that the test has failed (not listening to return status? only sees if there's a returned message? which on the second case is confused by my shell PS)

so instead of continuing ("true" returns no message and the successful exit status) it just try to fix the (non) errors in a loop

Note: this bug may affect too to --lint-cmd

Version and model info

No response

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