Subject: misc/9023: tar man page example misses '-'
To: None <gnats-bugs@gnats.netbsd.org>
From: None <wiz@danbala.ifoer.tuwien.ac.at>
List: netbsd-bugs
Date: 12/18/1999 07:13:34
>Number:         9023
>Category:       misc
>Synopsis:       tar man page example misses '-'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 18 07:12:01 1999
>Last-Modified:
>Originator:     Wiz
>Organization:
Thomas Klausner - wiz@danbala.tuwien.ac.at
WWW-homepage: http://fbma.tuwien.ac.at/~e9325658/Welcome.html
Der Horizont vieler Menschen ist ein Kreis mit Radius Null -- und
das nennen sie ihren Standpunkt. (found on /.)
>Release:        NetBSD-current, tar man page version 1.16
>Environment:
	
System: NetBSD hiro.xon.net 1.4.1 NetBSD 1.4.1 (HIRO) #7: Mon Nov 22 12:07:06 CET 1999 wiz@hiro.xon.net:/usr/src/sys/arch/i386/compile/HIRO i386


>Description:
The example for copying a file system including metadata is wrong.
It's 
    tar cf - -C srcdir . | tar xpf -C destdir
which makes the second part of the pipe fail, since that tar wants to read
from the file '-C'. It should be
    tar cf - -C srcdir . | tar xpf - -C destdir
to let tar use stdin.
>How-To-Repeat:
man tar
>Fix:
See above.
>Audit-Trail:
>Unformatted: