File: append.sh

package info (click to toggle)
tar 1.12-7
  • links: PTS
  • area: main
  • in suites: slink
  • size: 3,552 kB
  • ctags: 1,623
  • sloc: ansic: 15,401; sh: 898; yacc: 856; lisp: 592; makefile: 336; perl: 111; sed: 93
file content (19 lines) | stat: -rwxr-xr-x 199 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh
# Append was just not working.

. ./preset
. $srcdir/before

set -e
touch file1
touch file2
tar cf archive file1
tar rf archive file2
tar tf archive

out="\
file1
file2
"

. $srcdir/after