[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: split behavior
From: |
Eric Blake |
Subject: |
Re: split behavior |
Date: |
Fri, 11 Sep 2009 20:46:02 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Roger McNichols on 9/11/2009 6:51 PM:
>
> Currently using version 5.2.1 of coreutils 'split' command produces files
> with 'intelligent' suffixes. That is, the number of letters (or digits)
> required
> is based on the known number of output files that will be required.
coreutils 5.2.1 is quite old; the latest stable version is 7.6.
Thanks for the report. That said, POSIX requires that split stop
processing input and give an error after suffixes have been exhausted,
rather than using longer suffixes:
http://www.opengroup.org/onlinepubs/9699919799/utilities/split.html
But at least there is the -n option to specify a larger suffix.
If you are still worried about running out of suffixes, then it would
probably be worth implementing a command line option that allows split to
use intelligent suffixes; we can't make it the default because of POSIX,
but we can at least provide it via a new option. Would you like to submit
the patch?
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkqrC2oACgkQ84KuGfSFAYAjywCfd+ifML8f9ra5cBbWI+gKo2id
PboAni5YHgByqHszRLBGh8Kvcf0GDZnV
=Gj+e
-----END PGP SIGNATURE-----
- split behavior, Roger McNichols, 2009/09/11
- Re: split behavior,
Eric Blake <=
- Re: split behavior, Pádraig Brady, 2009/09/12
- Re: split behavior, Roger McNichols, 2009/09/13
- Re: split behavior, Pádraig Brady, 2009/09/14
- Re: split behavior, Roger McNichols, 2009/09/14
- Re: split behavior, Pádraig Brady, 2009/09/14
- Re: split behavior, Pádraig Brady, 2009/09/14
Re: split behavior, Pádraig Brady, 2009/09/11