~ubuntu-branches/ubuntu/maverick/hello/maverick

« back to all changes in this revision

Viewing changes to tests/nothing-1

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-01-05 16:42:30 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040105164230-ze0yqbimyx4sx1gs
Tags: 2.1.1-4
Updated config.guess and config.sub for GNU/K*BSD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# This script takes one argument.
 
3
 
 
4
trap 'rm -fr $tmpfiles' 1 2 3 15
 
5
 
 
6
LANGUAGE=
 
7
LC_ALL=
 
8
LC_MESSAGES=
 
9
LANG=
 
10
export LANGUAGE LC_ALL LC_MESSAGES LANG
 
11
 
 
12
tmpfiles="hello-test2.ok"
 
13
cat <<EOF > hello-test2.ok
 
14
Nothing happens here.
 
15
EOF
 
16
 
 
17
tmpfiles="$tmpfiles hello-test2.out"
 
18
: ${HELLO=hello}
 
19
${HELLO} sailor > hello-test2.out
 
20
 
 
21
# $HELLO > test.out
 
22
# $HELLO sailor >> test.out
 
23
# $HELLO --traditional >> test.out
 
24
 
 
25
: ${DIFF=diff}
 
26
${DIFF} hello-test2.ok hello-test2.out
 
27
result=$?
 
28
 
 
29
rm -f $tmpfiles
 
30
 
 
31
exit $result
 
32
 
 
33
# hello ends here