Bug 115431 - [patch] [request] improvement to split(1): add -B switch
Summary: [patch] [request] improvement to split(1): add -B switch
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 6.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2007-08-12 06:40 UTC by Perry Hutchison
Modified: 2022-10-17 12:40 UTC (History)
0 users

See Also:


Attachments
split.1.diff (1.15 KB, patch)
2007-08-12 06:40 UTC, Perry Hutchison
no flags Details | Diff
file.diff (3.49 KB, patch)
2007-08-12 06:40 UTC, Perry Hutchison
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Perry Hutchison 2007-08-12 06:40:00 UTC
In the case where the output files from split(1) are of a specified
size (in bytes) and the size of the input is known, it is possible
to compute the minimum required suffix_length rather than requiring
it to be specified or accepting the default (2).

Fix: The attached diffs add a -B switch, which requests the shortest
suffix_length consistent with the input and output file sizes
and otherwise behaves the same as -b.
How-To-Repeat: examine manpage and/or code
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:18 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:40:46 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>