blob: 7f70938cde24b0137137a9d13272090cede96182 [file] [log] [blame]
Gavin Howard0732f172018-02-15 15:03:22 -07001#! /bin/sh
2
3if [ "$#" -lt 1 ]; then
4 echo "usage: manual.sh <bc> [exprs...]"
5 exit 1
6fi
7
8set -e
9
10bc="$1"
11shift
12
13bcdir=$(dirname "${bc}")
14
15out1="$bcdir/log_bc.txt"
16out2="$bcdir/log_test.txt"
17
18rm -rf "$out1"
19rm -rf "$out2"
20
21for string in "$@"; do
22
23 echo "$string" | bc -q >> "$out1"
24 echo "$string" | "$bc" -q >> "$out2"
25
26done
27
28diff "$out1" "$out2"