Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Mar 2004 14:31:18 +0100
From:      "Cyrille Lefevre" <cyrille.lefevre@laposte.net>
To:        "Alexey Dokuchaev" <danfe@nsu.ru>, "Dag-Erling Sm?rgrav" <des@des.no>
Cc:        Albert Cahalan <albert@users.sourceforge.net>
Subject:   Re: PATCH for a more-POSIX `ps', and related adventures
Message-ID:  <1cd201c41400$b6e960c0$7890a8c0@dyndns.org>
References:  <1080165171.2232.910.camel@cube> <20040325191745.GB71731@stack.nl><1080247208.2232.1095.camel@cube> <xzpr7vgf17a.fsf@dwp.des.no> <20040326143411.GA1508@regency.nsu.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
"Alexey Dokuchaev" <danfe@nsu.ru> wrote:
> On Fri, Mar 26, 2004 at 09:43:21AM +0100, Dag-Erling Sm?rgrav wrote:
> > Albert Cahalan <albert@users.sf.net> writes:
> > > On Thu, 2004-03-25 at 14:17, Jilles Tjoelker wrote:
> > > > I think that has been a historical mistake in the POSIX standardization.
> > > > tar/cpio were not standardized, instead a new utility "pax" was
> > > > invented. This should have been done with ps too [...]
> > > I would agree, except that nobody uses pax. :-)
> >
> > NetBSD and OpenBSD use pax exclusively; their tar and cpio are
> > symlinks to /bin/pax.
>
> How do they handle tar/cpio-specific arguments than?  By bloating pax(1)
> with quite some piece of code?  This seems odd.


the code is already there. let's try :

$ ln -s /tmp/tar /bin/pax
$ ln -s /tmp/cpio /bin/pax
$ /tmp/tar -?
usage: pax [-]{crtux}[-befhjmopqsvwyzHLOPXZ014578] [blocksize] [archive]
           [replstr] [-C directory] [-I file] [file ...]

$ /tmp/tar -?
usage: pax -o [-aABcLvVzZ] [-C bytes] [-H format] [-O archive]
           [-F archive] < name-list [> archive]
usage: pax -i [-bBcdfmnrsStuvVzZ6] [-C bytes] [-E file] [-H format]
           [-I archive] [-F archive] [pattern...] [< archive]
usage: pax -p [-adlLmuvV] destination-directory < name-list

see also PR#38256 (http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/38256)

Cyrille Lefevre.
-- 
home: mailto:cyrille.lefevre@laposte.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1cd201c41400$b6e960c0$7890a8c0>