delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/03/10/05:14:06

Message-ID: <B0FEA00E82A7D1118BFB00A0CC99027821320B@ARGON>
From: Michel de Ruiter <Michel AT smr DOT nl>
To: "'DJGPP workers'" <djgpp-workers AT delorie DOT com>
Date: Wed, 10 Mar 1999 09:13:05 +0100
X-Mailer: Internet Mail Service (5.5.2448.0)
Reply-To: djgpp-workers AT delorie DOT com

Hello everybody,

About `gzip -n', using bare MS-DOS 7.01 (without LFNs):

This might very well be unappropriate for djgpp-workers, but as I brought
this up here in the first place...

bash$ echo $GZIP

bash$ >myfile.ext
bash$ gzip -n myfile.ext
gzip: myfile.ext compressed to myfile.egz
bash$ od -s myfile.egz 
0000012 myfile.ext
bash$ gunzip myfile.egz
bash$ ls myfile*
myfile.e
bash$ exit

This behaviour has two (actually one and a half) problems, IMHO.

First, if `-n' is given explicitly, gzip should _not_ put a filename
in the gzipped file, whatever happens, e.g. so it could be used to get
a really minimal filesize.

Second, if gzip still does think it has strong reasons to put the
original filename in the gzipped file (because the filename gets
truncated or whatever), gunzip should also use that filename by
default (as if `-N' was used), to be consistent.

Comments?

--
*Groeten, Michel* _http://www.cs.vu.nl/~mdruiter_
   ____________ 
   \  /====\  /   "You know, Beavis, you need things that suck,
    \/      \/     to have things that are cool", Butt-Head.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019