File: nothing-1

package info (click to toggle)
hello 2.1.1-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,012 kB
  • ctags: 786
  • sloc: ansic: 6,498; sh: 4,270; makefile: 361; perl: 348; yacc: 316; sed: 16
file content (33 lines) | stat: -rwxr-xr-x 525 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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#! /bin/sh
# This script takes one argument.

trap 'rm -fr $tmpfiles' 1 2 3 15

LANGUAGE=
LC_ALL=
LC_MESSAGES=
LANG=
export LANGUAGE LC_ALL LC_MESSAGES LANG

tmpfiles="hello-test2.ok"
cat <<EOF > hello-test2.ok
Nothing happens here.
EOF

tmpfiles="$tmpfiles hello-test2.out"
: ${HELLO=hello}
${HELLO} sailor > hello-test2.out

# $HELLO > test.out
# $HELLO sailor >> test.out
# $HELLO --traditional >> test.out

: ${DIFF=diff}
${DIFF} hello-test2.ok hello-test2.out
result=$?

rm -f $tmpfiles

exit $result

# hello ends here