do touch $prefix$i
done
tar -cf archive ./$prefix*
-tar --delete -f archive ${prefix}5
+tar --delete -f archive ./${prefix}5
tar -tf archive
out="\
-${prefix}1
-${prefix}2
-${prefix}3
-${prefix}4
-${prefix}6
-${prefix}7
-${prefix}8
-${prefix}9
-"
-
-err="tar: Removing leading \`./' from member names
+./${prefix}1
+./${prefix}2
+./${prefix}3
+./${prefix}4
+./${prefix}6
+./${prefix}7
+./${prefix}8
+./${prefix}9
"
. $srcdir/after
touch directory/subdirectory/file2
tar -cf archive ./file1 directory
tar -tf archive \
- --exclude='*1' \
+ --exclude='./*1' \
--exclude='d*/*1' \
--exclude='d*/s*/*2' | sort
directory/subdirectory/
"
-err="tar: Removing leading \`./' from member names
-"
-
. $srcdir/after
err="\
7+0 records in
7+0 records out
-tar: Removing leading \`./' from member names
2+1 records in
2+1 records out
"