HF RL Explorer

ast-grep run exits with 0 when no matches found, should exit with 1

ast-grep run exits with 0 when no matches found, should exit with 1: a task in LegoFlow-SWE (Harbor dataset). The ast-grep run command currently exits with status code 0 when a pattern finds no matches in the given file(s). This is inconsistent with widely-used search tools like grep and ripgrep …

The task

The `ast-grep run` command currently exits with status code 0 when a pattern finds no matches in the given file(s). This is inconsistent with widely-used search tools like `grep` and `ripgrep`, which exit with code 1 in the “no match” case. The successful exit code makes it impossible to reliably detect in shell…

Part of Lego-X/LegoFlow-SWE.