GNU tar 1.13
This commit is contained in:
26
tests/delete02.sh
Executable file
26
tests/delete02.sh
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user