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