summaryrefslogtreecommitdiff
path: root/tests/lib/libc
diff options
context:
space:
mode:
authorjschauma <jschauma@NetBSD.org>2023-01-30 15:22:02 +0000
committerjschauma <jschauma@NetBSD.org>2023-01-30 15:22:02 +0000
commit199875ea3580b7fef75ccd4a30a30813bca9926f (patch)
tree5cf1ce75cb8cce9cb5402fc751e62cbf6ef302b7 /tests/lib/libc
parent69cadf71ed6fd9c1a413f8cc1059aeb9bd64a8e9 (diff)
auto-extend suffix length if required
If the input cannot be split into the number of files resulting from the default suffix length, automatically extend the suffix length rather than bailing out with 'too many files'. Suffixes are extended such that the resulting files continue to sort lexically and "cat *" would reproduce the input. For example, splitting a 1M lines file into (default) 1000 lines per file would yield files named 'xaa', 'xab', ..., 'xyy', 'xyz', 'xzaaa', 'xzaab', ..., 'xzanl'. If '-a' is specified, the suffix length is not auto-extended. This behavior matches GNU sort(1) since around version 8.16.
Diffstat (limited to 'tests/lib/libc')
0 files changed, 0 insertions, 0 deletions