[comp.unix] pack vs. compress

gil@saturn.ucsc.edu (Gil Fuchs) (11/21/90)

howdi net,

compress works on any length filenames.  Why doesn't pack do the same???
what can be done about it (assuming one doesn't want to shorten the file names)

thanks   
-gil

rkh@mtune.ATT.COM (Robert Halloran) (11/28/90)

In article <2273@megadon.UUCP> gil@saturn.ucsc.edu (Gil Fuchs) writes:
>compress works on any length filenames.  Why doesn't pack do the same???
>what can be done about it (assuming one doesn't want to shorten the file names)

Taking a quick peek at the source :-), pack.c has the usual pre-SVr4
restriction on filename length (14 characters) hard-coded in.  I would
assume it would be possible to rebuild it to handle longer BSD-ish names.

On the other hand, compress is PD, is part of current BSD and SVr4, and
usually manages better reduction than pack.  If you have to send stuff and
your recipient doesn't have compress, why not include it as part of the
send?

						Bob Halloran
						Distributed Programming Tools Group
=========================================================================
UUCP: ...!att!mtune!rkh			DDD: (201 | 908)957-6034
Internet:   rkh@mtune.dptg.att.com			       
#include <std_disclaim.h>
USPS: AT&T Bell Labs, 200 Laurel Ave Rm 3G-314 Middletown NJ 07748
=========================================================================