initial commit
[bills-tools.git] / calc / calcrc
bloba9241d817d31d4051f4bdf03f1efd23adee49883
1 #!/usr/bin/env rc
2 while (line=`{read}) {
3         CALC_VARS=($CALC_VARS `{echo $line|sed -e 's/^([^=]*)=.*/\1/'})
4         eval $line
5         eval 'CALC_OLD_'$line
7 . $1
8 for (v in $CALC_VARS) {
9         if (test $$v '!=' $(CALC_OLD_$v)) echo $v '=' $$v