1. 10
  1.  

  2. -3

    Totally ignoring the PAGER env var. Good job.

    Also outright ignoring the result of the execpv() call and always printing an error message for it, afaict?

    1. 3

      I can’t tell if you’re being sarcastic with your comment :) . I was just trying to put out a minimal example, so felt was okay to ignore the PAGER environment variable.

      Also outright ignoring the result of the execpv() call and always printing an error message for it, afaict?

      From the execvp manpage: “The exec() functions return only if an error has occurred. The return value is -1, and errno is set to indicate the error.” Did I miss anything?