From d55d3dd5886c146547482c9f45ac653c1ebe9237 Mon Sep 17 00:00:00 2001 From: Jérémy Compostella Date: Sun, 29 Jan 2012 15:20:31 +0100 Subject: split: support optional start value for --numeric-suffixes Allow changing the --numeric-suffixes start number from the default of 0. * src/split.c (next_file_name): Initialize the suffix index and the output filename according to start value. (main): Check that the suffix length is large enough for the numerical suffix start value. * doc/coreutils.texi (split invocation): Mention it. * NEWS (New features): Mention it. * tests/split/numeric: New file. Test --numeric-suffixes[=FROM]. * tests/Makefile.am (TESTS): Reference the new test. --- tests/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index 7b5368195..eed6ed624 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -259,6 +259,7 @@ TESTS = \ split/lines \ split/l-chunk \ split/r-chunk \ + split/numeric \ misc/stat-birthtime \ misc/stat-fmt \ misc/stat-hyphen \ -- cgit v1.2.3-54-g00ecf