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?
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?
Hey! Just signed up for Lobsters after lurking here for a long time. This is my first time posting here:
Mine is at https://samrat.me – I use Hugo and host it on Netlify. Like some other people here, the Hugo theme I was using broke due to some templating changes and I too lost a few hours fixing it.
I did write my own static site generator once and used it for my site for a while.