On Thu, 16 Aug 2007 12:17:13 -0700 (PDT) Don Cragun wrote:
> When extracting files from an archive, three ways to specify it would
> be:
>               pax -r -s ",^/,," -x cpio < cpio_archive
>               pax -r -s "/^\///" -x pax < pax_archive
>               pax -r -s "x^/xx" -x ustar < ustar_archive

one minor nit,
  "The archive formats described in the EXTENDED DESCRIPTION
   section shall be automatically detected on input."
so the ``-x format'' are not needed -- -x is actually not listed for the -r 
mode,
at least at http://www.opengroup.org/onlinepubs/009695399/toc.htm
so this would suffice

        pax -r -s ",^/,," < any_archive_the_implementation_groks

I believe with ``-r -x format'' an implementation may treat input archive
mismatch as an error, but this is not explicitly stated in the standard

(this *may* be the only spot in the standard where I have a chance of
 knowing something Don doesn't)

-- Glenn Fowler -- AT&T Research, Florham Park NJ --


Reply via email to