Subject: bin/26251: gzip -f behaves differently from gnu gzip
To: None <>
From: Mark Davies <>
List: netbsd-bugs
Date: 07/12/2004 10:16:43
>Number:         26251
>Category:       bin
>Synopsis:       gzip -f behaves differently from gnu gzip
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 11 22:17:00 UTC 2004
>Originator:     Mark Davies
>Release:        NetBSD 2.0F
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
System: NetBSD 2.0F NetBSD 2.0F (MCS_WORKSTATION) #3: Fri Jul 9 12:51:39 NZST 2004 i386
Architecture: i386
Machine: i386
	When given the -f option gzip complains if a .gz file you are about to 
	create already exists while gnu gzip just overwrites it.
	This is still true in revision 1.57 of gzip.c
	% touch a a.gz
	% gzip -f a

	GNU version replaces a.gz, NetBSD version complains
	"gzip: could not create output: a.gz: File exists"
	and leaves the files alone.