]>
Commit | Line | Data |
---|---|---|
0ffd4fd1 | 1 | #! /bin/sh |
828c373b | 2 | |
a1b3bf8c AD |
3 | test -z "$VERBOSE" && { |
4 | exec > /dev/null 2>&1 | |
5 | } | |
6 | ||
0ffd4fd1 AD |
7 | cat >input <<EOF |
8 | a := 1 | |
9 | b := 2 | |
10 | c := 3 | |
11 | d := a + b * c | |
12 | d | |
13 | EOF | |
14 | ||
15 | ./calc++ input | |
16 | ./calc++ -p input | |
17 | ||
18 | cat >input <<EOF | |
19 | a := 1 | |
20 | d := a + b * c | |
21 | EOF | |
22 | ./calc++ input | |
23 | ||
24 | set -x | |
25 | echo toto | |
26 | cat >input <<EOF | |
27 | toto := 1 | |
28 | toto | |
29 | EOF | |
30 | ./calc++ -s input | |
828c373b AD |
31 | |
32 | rm input |