repo.or.cz
/
bills-tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
added LICENSE files
[bills-tools.git]
/
calc
/
calcrc
blob
2a6cea6ef169576e7ffb2c4d5964dce555b528b5
1
#!/usr/bin/env rc
2
3
# calc, (c) Oct, 2010, by Bill Burdick
4
# licensed with the ZLIB license (see the LICENSE file)
5
6
while (line=`{read}) {
7
CALC_VARS=($CALC_VARS `{echo $line|sed -e 's/^([^=]*)=.*/\1/'})
8
eval $line
9
eval 'CALC_OLD_'$line
10
}
11
. $1
12
for (v in $CALC_VARS) {
13
if (test $$v '!=' $(CALC_OLD_$v)) echo $v '=' $$v
14
}