Re: head(1): validate all line count arguments

2021-10-10 Thread Todd C . Miller
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

head(1): validate all line count arguments

2021-10-09 Thread Scott Cheloha
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: