Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what: exit(0) only for match #754

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Commits on Oct 4, 2024

  1. what: exit(0) only for match

    * Similar to grep command, exit code 0 means at least one match occurred when looking at input files
    * Unlike grep, exit code 1 is shared between no-match and error conditions (e.g. file could not be opened) [1]
    * Continue to bail on the 1st open() failure, but now go through exit() instead of die()
    * Difference discovered when testing against OpenBSD version
    
    1. https://pubs.opengroup.org/onlinepubs/009696799/utilities/what.html
    mknos authored Oct 4, 2024
    Configuration menu
    Copy the full SHA
    aeae9d1 View commit details
    Browse the repository at this point in the history