From owner-freebsd-doc Sun Jan 5 20:10: 5 2003 Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CA0337B401 for ; Sun, 5 Jan 2003 20:10:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3D8743E4A for ; Sun, 5 Jan 2003 20:10:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h064A3NS020576 for ; Sun, 5 Jan 2003 20:10:03 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h064A3kx020575; Sun, 5 Jan 2003 20:10:03 -0800 (PST) Date: Sun, 5 Jan 2003 20:10:03 -0800 (PST) Message-Id: <200301060410.h064A3kx020575@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org Cc: From: swear@attbi.com (Gary W. Swearingen) Subject: Re: docs/46787: compress(1) manpage missing BUGS; other cleanup. Reply-To: swear@attbi.com (Gary W. Swearingen) Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR docs/46787; it has been noted by GNATS. From: swear@attbi.com (Gary W. Swearingen) To: Giorgos Keramidas Cc: bug-followup@freebsd.org Subject: Re: docs/46787: compress(1) manpage missing BUGS; other cleanup. Date: 05 Jan 2003 20:06:22 -0800 Giorgos Keramidas writes: > > If a specified filename does not end with ".Z", "compress" will assume > > that the filename ends with ".Z". See BUGS section. > > Ah, much better! Now I can reproduce the bug, but it's not compress > that is buggy. It's uncompress, and only if -f option is used: It's in the "uncompress" para; it better not be "compress". I'll fix. As for "-f", you answered "overwrite foo? " the wrong way. A "y" will delete the file instead of overwriting it (even if your "foo" was an real uncompressable file which CAN be uncompressed with "cat foo | uncompress >foo.bar"). > How about something like this? ... > +extension exists, and promptly overwrite the existing file. it doesn't overwrite it (as it should with uncompressed data); it deletes it! > So it's two bugs? Uhm. These are accidents waiting to happen!!! I'm not sure if it's the same bug in two guises, or what. There's like to be other wierdness. Like with zero-length files, & whatnot. > I think I should devote some time to try and find a fix for these, > instead of documenting their existence :-( I was thinking that a compressed file without ".Z" is quite rare, but I hadn't thought of "uncompress -f *" which seems fairly likely and seems like it could do some serious damage. If you'd like I'll write up a "bin" PR and we can see if anyone else wants to beat you to it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message