Subject: bin/3178: some typos in tar.1
To: None <gnats-bugs@gnats.netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: netbsd-bugs
Date: 02/01/1997 21:52:06
>Number:         3178
>Category:       bin
>Synopsis:       some typos in tar.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb  1 21:50:02 1997
>Last-Modified:
>Originator:     Hubert Feyrer
>Organization:
Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
>Release:        1.2
>Environment:
	
System: NetBSD miyu 1.2 NetBSD 1.2 (MIYU) #8: Sun Jan 26 20:34:03 MET 1997 feyrer@miyu:/usr/disk1/src12/sys/arch/i386/compile/MIYU i386


>Description:
	V1.2's tar manpage contains a typo or two...

>How-To-Repeat:
	man tar

>Fix:

diff -crNb /usr/src/gnu/usr.bin/tar/tar.1 /usr/homes/feyrer/work/FreeBSD/root/usr.src/tar/tar.1
*** /usr/src/gnu/usr.bin/tar/tar.1	Wed Mar 13 14:55:00 1996
--- /usr/homes/feyrer/work/FreeBSD/root/usr.src/tar/tar.1	Tue Jan 14 09:57:00 1997
***************
*** 132,138 ****
  Sets the block size for reading or writing to N 512-byte blocks.
  .It Fl B
  .It Fl -read-full-blocks
! Re-assemble short readsinto full blocks (for reading 4.2BSD pipes).
  .It Fl C Ar directory
  .It Fl -directory Ar directory
  Change to
--- 132,138 ----
  Sets the block size for reading or writing to N 512-byte blocks.
  .It Fl B
  .It Fl -read-full-blocks
! Re-assemble short reads into full blocks (for reading 4.2BSD pipes).
  .It Fl C Ar directory
  .It Fl -directory Ar directory
  Change to
***************
*** 152,158 ****
  .Xr rmt 8
  to read or write the specified
  .Ar file
! on a remote machine.
  .It Fl F Ar file
  .It Fl -info-script Ar file
  .It Fl -new-volume-script Ar file
--- 152,159 ----
  .Xr rmt 8
  to read or write the specified
  .Ar file
! on a remote machine. "-" may be used is a filename, for reading
! or writing to/from stdin/stdout.
  .It Fl F Ar file
  .It Fl -info-script Ar file
  .It Fl -new-volume-script Ar file
***************
*** 165,171 ****
  .It Fl -listed-incremental Ar file
  Create/list/extract new GNU-format incremental backup.
  .It Fl h
! .it Fl -dereference
  Don't write symlinks as symlinks; write the data of the files they name.
  .It Fl i
  .It Fl -ignore-zeros
--- 169,175 ----
  .It Fl -listed-incremental Ar file
  Create/list/extract new GNU-format incremental backup.
  .It Fl h
! .It Fl -dereference
  Don't write symlinks as symlinks; write the data of the files they name.
  .It Fl i
  .It Fl -ignore-zeros
*** 315,320 ****
--- 319,329 ----
  directory (the shell does not have access to the list of files in
  the archive, of course).
  .Pp
+ To move file hierarchies, use a command line like this:
+ .Bd -literal
+ tar tar -cf - -C srcdir . | tar xpf - -C destdir
+ .Ed
+ .Pp
  To create a compressed archive on diskette, using gzip, use a command-line like
  .Dl tar --block-compress -z -c -v -f /dev/rfd1a -b 36 tar/
  Note that you cannot mix bundled flags and --style flags; you can use

>Audit-Trail:
>Unformatted: