File: gzip.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 (17 lines) | stat: -rwxr-xr-x 268 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh
# tar should detect that its gzip child failed.

. ./preset
. $srcdir/before

tar xfvz /dev/null
test $? = 2 || exit 1

err="\

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors
"

. $srcdir/after