On Sat, 09 Oct 2021 20:43:12 -0500, Scott Cheloha wrote:
> head(1) currently only validates the last count argument given. I
> think we ought to be stricter. You can specify the -n option an
> arbitrary number of times.
Yes, it is better to perform the check during argument processing.
OK
Hi,
head(1) currently only validates the last count argument given. I
think we ought to be stricter. You can specify the -n option an
arbitrary number of times.
While here, let's use the default strtonum(3) error message format.
The option-argument name is "count", not "line count".
Before: