ack3 icon indicating copy to clipboard operation
ack3 copied to clipboard

Normalize exit codes

Open petdance opened this issue 6 years ago • 1 comments

The grep docs say:

 The grep utility exits with one of the following values:

 0     One or more lines were selected.
 1     No lines were selected.
 >1    An error occurred.

ack should do the same. I think that right now, only -f respects this, and then not even with an error.

petdance avatar Nov 22 '19 22:11 petdance

We have a t/exit-code.t but it doesn't check for code 2 = errors, and it's not very exhaustive.

petdance avatar Nov 22 '19 22:11 petdance