Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!ames!ucbcad!ucbvax!amdcad!rpw3 From: rpw3@amdcad.UUCP Newsgroups: comp.os.minix Subject: Re: minix shar- is this a sensible thought ? Message-ID: <14658@amdcad.UUCP> Date: Sun, 8-Feb-87 05:52:47 EST Article-I.D.: amdcad.14658 Posted: Sun Feb 8 05:52:47 1987 Date-Received: Mon, 9-Feb-87 02:43:27 EST References: <1717@hoptoad.uucp> <552@atari.UUCP> <1051@sigma.UUCP> Reply-To: rpw3@amdcad.UUCP (Rob Warnock) Distribution: world Organization: [Consultant] San Mateo, CA Lines: 28 Keywords: shar formats Summary: use the Minix format. +--------------- | There should be concensus on the particular shar format to be used, to | avoid the mess we currently have with the many different formats in use | and complex "unshar" scripts that figure out which one was used. +--------------- How about using the format produced by the Minix "shar" program? ;-} This is a C program which produces shars. It uses the "prefix everything by X" method, and uses "gres" to strip the X's when unpacking. Since we have therefore a standard format, we can write an unshar which exactly matches the shar files produced by Minix "shar". 'Nuf said? p.s. Since Unix doesn't (these days) have "gres", a suitable "gres" for unpacking such shars on Unix systems is: : gres.sh - Unix approximation of "gres" from="$1" to="$2" shift ; shift exec sed -e "s/$from/$to/" $* Rob Warnock Systems Architecture Consultant UUCP: {amdcad,fortune,sun}!redwood!rpw3 DDD: (415)572-2607 USPS: 627 26th Ave, San Mateo, CA 94403