Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!sri-unix!sri-spam!mordor!lll-lcc!ptsfa!ihnp4!cbosgd!mandrill!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon Allbery) Newsgroups: comp.unix.questions Subject: Re: HPUX 5.2 archiver Message-ID: <4829@ncoast.UUCP> Date: Sat, 10-Oct-87 11:33:04 EDT Article-I.D.: ncoast.4829 Posted: Sat Oct 10 11:33:04 1987 Date-Received: Mon, 12-Oct-87 21:34:26 EDT References: <8710052355.AA03056@lbl-helios> Reply-To: allbery@ncoast.UUCP (Brandon Allbery) Followup-To: comp.unix.questions Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 26 As quoted from <8710052355.AA03056@lbl-helios> by vern%lbl-helios@LBL-RTSG.ARPA (Vern Paxson): +--------------- | I spent an inordinate amount of time today trying to read on a Sun the | contents of an "ar" archive written on an HP9000. The problem was that | ar on the HP generates non-standard archive headers. Instead of a line like: +--------------- Solution: change the '/' to a space. Don't merely delete it! As for it being "nonstandard": define "standard". There are four common archive formats: PDP-11 (binary header), System V Release 0 (text header, magic number ""), System V Release 2 and BSD (text header, magic number "!\n", only difference is that SVR2 version will correctly handle file names containing spaces because it delimits the file name with a slash). Not that file names containing trailing blanks are common... The HP uses System V Release 2 archives; the Sun, being a BSD machine, uses BSD archives. Converting between them is actually quite simple, given the single difference between them. (Be nice if one or the other would change so that they were compatible, though.) -- Brandon S. Allbery, moderator of comp.sources.misc {{harvard,mit-eddie}!necntc,well!hoptoad,sun!mandrill!hal}!ncoast!allbery ARPA: necntc!ncoast!allbery@harvard.harvard.edu Fido: 157/502 MCI: BALLBERY <> "...he calls _that_ a `little adventure'?!" - Cmdr. Ryker