Subject: misc/14486: wrong example in pax.1
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hiramatu@boreas.dti.ne.jp>
List: netbsd-bugs
Date: 11/06/2001 23:43:04
>Number:         14486
>Category:       misc
>Synopsis:       wrong example in pax.1
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 06 06:44:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Hiramatsu Yoshifumi
>Release:        -current 1.5X
>Organization:
	
>Environment:
	
System: NetBSD river.my.domain 1.5X NetBSD 1.5X (River) #0: Fri Aug 10 08:55:32 JST 2001 hiramatsu@river.my.domain:/usr/src/sys/arch/i386/compile/River i386
Architecture: i386
Machine: i386
>Description:
EXAMPLES section of pax.1 has

     The following commands:
           mkdir newdir
           cd olddir
           pax -rw . newdir
     will copy the entire olddir directory hierarchy to newdir.

but this example doesn't work as explained.

>How-To-Repeat:
river% mkdir newdir
river% cd olddir
river% pax -rw . newdir
pax: Cannot access destination directory newdir <No such file or directory>

>Fix:
Correct example can be

  mkdir newdir
  cd olddir
  pax -rw . ../newdir
>Release-Note:
>Audit-Trail:
>Unformatted: