bin/119329: Fix misleading man 1 split

Julian Stacey jhs at berklix.org
Fri Jan 4 02:20:01 PST 2008


>Number:         119329
>Category:       bin
>Synopsis:       Fix misleading man 1 split
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 04 10:20:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Julian Stacey <jhs at berklix.com>
>Release:        FreeBSD 6.2-RELEASE i386
>Organization:
http://berklix.com
>Environment:
System: FreeBSD laps.js.berklix.net 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Wed Dec 5 22:11:04 CET 2007 jhs at laps.js.berklix.net:/usr1/ftp/pri/FreeBSD/releases/i386/6.2-RELEASE/686/src/sys/i386/compile/LAPS.small i386


	
>Description:
	
The word "smaller" is misleading,
as on first reading, one assumes -b will create smaller than default size,
& only if one tries to specify eg -b 1000000 does one discover one can
get "smaller" files of 1000000 that are larger than the default of ~70K
(taking split /var/log/messages.0 as example)

>How-To-Repeat:
	
	man split

>Fix:

	

http://berklix.com/~jhs/src/bsd/fixes/freebsd/src/gen/usr.bin/split/split.1.REL=ALL.diff

*** FreeBSD-6.2-RELEASE/src/usr.bin/split/split.1.old	Fri Jan  4 10:58:52 2008
--- new-generic/src/usr.bin/split/split.1	Fri Jan  4 10:59:33 2008
***************
*** 66,72 ****
  .Ar suffix_length
  letters to form the suffix of the file name.
  .It Fl b
! Create smaller files
  .Ar byte_count
  bytes in length.
  If
--- 66,72 ----
  .Ar suffix_length
  letters to form the suffix of the file name.
  .It Fl b
! Create split files
  .Ar byte_count
  bytes in length.
  If
***************
*** 80,86 ****
  .Ar byte_count
  megabyte pieces.
  .It Fl l
! Create smaller files
  .Ar n
  lines in length.
  .It Fl p Ar pattern
--- 80,86 ----
  .Ar byte_count
  megabyte pieces.
  .It Fl l
! Create split files
  .Ar n
  lines in length.
  .It Fl p Ar pattern
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list