• Marc Cornellà's avatar
    Fast algorithm to determine grep alias flags · 8d814fdf
    Marc Cornellà authored
    This version tries whether grep supports all the flags together
    and progressively checks older flags if the grep test fails.
    This means only one grep call if all flags are supported, and
    one additional call for every flag that's not supported, up to
    a maximum of 3 calls.
    8d814fdf
grep.zsh 1.24 KB