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