]> Dogcows Code - chaz/tar/blob - tests/delete03.sh
Updated
[chaz/tar] / tests / delete03.sh
1 #! /bin/sh
2 # Copyright (C) 2001 Free Software Foundation, Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17 # 02111-1307, USA.
18
19 . ./preset
20 TAR_ARCHIVE_FORMATS="gnu oldgnu posix"
21 . $srcdir/before
22
23 set -e
24 prefix=This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX
25 rm -f $prefix*
26 for i in 1 2 3 4 5 6 7 8 9
27 do touch $prefix$i
28 done
29 tar -cf archive ./$prefix*
30 tar --delete -f archive ./${prefix}5
31 tar -tf archive
32
33 out="\
34 ./${prefix}1
35 ./${prefix}2
36 ./${prefix}3
37 ./${prefix}4
38 ./${prefix}6
39 ./${prefix}7
40 ./${prefix}8
41 ./${prefix}9
42 "
43
44 . $srcdir/after
This page took 0.035476 seconds and 4 git commands to generate.