nl: support -l counts > 2**64

* src/nl.c (main): Allow -l arg to exceed 2**64.
This commit is contained in:
Paul Eggert committed 2024-08-10 19:30:01 -07:00
1 parent 22ac54858c
commit 67eff6359d
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -34,8 +34,8 @@ GNU coreutils NEWS -*- outline -*-
** Improvements
'head -c NUM' and 'head -n NUM' no longer fail merely because NUM
stands for 2**64 or more.
'head -c NUM', 'head -n NUM' and 'nl -l NUM' no longer fail merely
because NUM stands for 2**64 or more.
sort operates more efficiently when used on pseudo files with
an apparent size of 0, like those in /proc.
+1 -1
View File
@@ -533,7 +533,7 @@ main (int argc, char **argv)
case 'l':
blank_join = xnumtoimax (optarg, 10, 1, INTMAX_MAX, "",
_("invalid line number of blank lines"),
0, XTOINT_MIN_RANGE);
0, XTOINT_MIN_RANGE | XTOINT_MAX_QUIET);
break;
case 's':
separator_str = optarg;