diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-05-06 01:48:40 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-05-13 12:43:40 +0100 |
commit | 703747f892d3ec4713b97d4bff770a80122cd1ef (patch) | |
tree | 97caf65ccdb43c5f01785ade78dbaf29c3cfc9ae /src/dcgen | |
parent | 79111d1553ff6603199b9e8e5f27269d55b095fb (diff) | |
download | coreutils-703747f892d3ec4713b97d4bff770a80122cd1ef.tar.xz |
split: auto set suffix len for --numeric-suffixes=<N --number=N
Supporting `split --numeric-suffixes=1 -n100` for example.
* doc/coreutils.texi (split invocation): Mention the two
use cases for the FROM parameter, and the consequences on
the suffix length determination.
* src/split.c (set_suffix_length): Use the --numeric-suffixes
FROM parameter in the suffix width calculation, when it's
less than the number of files specified in --number.
* tests/split/suffix-auto-length.sh: Add test cases.
Fixes http://bugs.gnu.org/20511
Diffstat (limited to 'src/dcgen')
0 files changed, 0 insertions, 0 deletions