Bug 158378

Summary: cpio/bsdcpio(1) man page does not document -0 and --null options
Product: Documentation Reporter: Carl <k0802647>
Component: Manual PagesAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: doc, felix.the.red, ygy
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Carl 2011-06-28 10:10:12 UTC
The cpio(1), actually bsdcpio(1), man page makes no mention that the GNU cpio options -0 and --null are supported, but it turns out they actually are. The man page should be updated to reflect this fact and perhaps to include an example of use with the -print0 option of the find command.

Fix: 

Add missing options to cpio/bsdcpio(1) man page.
How-To-Repeat: Try the -0 or --null option:

# cpio --rubbish
cpio: Option --rubbish is not supported
Brief Usage:
  List:    cpio -it < archive
  Extract: cpio -i < archive
  Create:  cpio -o < filenames > archive
  Help:    cpio --help
# cpio --null
cpio: Must specify at least one of -i, -o, or -p
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2012-02-06 04:35:14 UTC
Responsible Changed
From-To: freebsd-doc->eadler

I'll take it.
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2012-02-06 04:40:29 UTC
Responsible Changed
From-To: eadler->kientzle

over to maintainer
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:35 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 4 Felix Johnson freebsd_triage 2021-09-27 02:18:49 UTC
As of 09/26/2021, this option is documented in cpio(1) for FreeBSD 13.0.
I recommend closing this bug, no patch needed.