Subject: misc/14486: wrong example in pax.1
To: None <>
From: None <>
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
>Originator:     Hiramatsu Yoshifumi
>Release:        -current 1.5X
System: NetBSD 1.5X NetBSD 1.5X (River) #0: Fri Aug 10 08:55:32 JST 2001 i386
Architecture: i386
Machine: i386
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.

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

Correct example can be

  mkdir newdir
  cd olddir
  pax -rw . ../newdir