From: duck AT novell DOT com (The Duck ) Subject: b17.1: tar -x *appends* to existing file ?! 19 Dec 1996 14:02:52 -0800 Sender: daemon AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: X-Nextstep-Mailer: Mail 3.3 (Enhance 2.0b5) Original-To: gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com Hi, When I use b17.1 tar to extract a file from an archive, and the file already exists, tar will append the existing file with data from the archive, rather than overlay it. See below. Does this happen to you too? --Duck /tmp > echo $PATH /d/bin:/d/usr/cygnus/H-i386-cygwin32/bin::/WINNT40/SYSTEM32:/WINNT40:/WINNT40/SYSTEM32/NLS/ENGLISH:. /tmp > type tar tar is hashed (/d/usr/cygnus/H-i386-cygwin32/bin/tar.exe) /tmp > uname -a CYGWIN32/NT RUDDY 4.0 17.4 i686 /tmp > /tmp > cat foo line 1 line 2 /tmp > tar cvf tarfile foo # create tarfile setgrent called, and it's not done yet. foo /tmp > tar xvvf tarfile # extract foo -rw-r--r-- 500/everyone 16 Dec 16 10:25 1996 foo /tmp > cat foo # got 2 copies now line 1 line 2 line 1 line 2 /tmp > tar xvvf tarfile # extract again -rw-r--r-- 500/everyone 16 Dec 16 10:25 1996 foo /tmp > cat foo # now there's 3 line 1 line 2 line 1 line 2 line 1 line 2 /tmp > rm foo # remove foo, /tmp > tar xvvf tarfile # and extract from archive -rw-r--r-- 500/everyone 16 Dec 16 10:25 1996 foo /tmp > cat foo # as expected line 1 line 2 /tmp > - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".