From 1a110ed9decd5c7bfe90ba52d132f7732769424f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 25 Apr 1997 12:50:05 +0000 Subject: [PATCH] GNU tar 1.13 --- tests/delete02.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 tests/delete02.sh diff --git a/tests/delete02.sh b/tests/delete02.sh new file mode 100755 index 0000000..c202cac --- /dev/null +++ b/tests/delete02.sh @@ -0,0 +1,26 @@ +#! /bin/sh +# Deleting a member with the archive from stdin was not working correctly. + +. ./preset +. $srcdir/before + +set -e +genfile -l 3073 -p zeros > 1 +cp 1 2 +cp 2 3 +tar cf archive 1 2 3 +tar tf archive +cat archive | tar f - --delete 2 > archive2 +echo ----- +tar tf archive + +out="\ +1 +2 +3 +----- +1 +3 +" + +. $srcdir/after -- 2.45.2