Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Replacing Calculator.app/CalcEngine with 'bc'' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Replacing Calculator.app/CalcEngine with 'bc'
Authored by: recusant on Oct 22, '04 08:34:28PM

Ok, so I moved CalcEngine to CalcEngine.backup and created a symbolic link to bc called CalcEngine to see how badly it would break.

It mostly works in the Basic view, but many of the functions aren't recognized in the Advanced view. Looks like a job for sed, but it would be a lot easier with some info on the CalcEngine program itself. It also won't recognize decimals (sets the precision to 0)

Don't forget to put the original CalcEngine back if you do this experiment.

[ Reply to This | # ]

Replacing Calculator.app/CalcEngine with 'bc'
Authored by: fracai on Oct 25, '04 10:11:07AM

oh how I wish I had left my computer up when I went to work this morning.

make a script that receives stdin and writes it to a file
heck, just make a named pipe

then run tail -f on the output file or pipe
run some basic/advanced calculations and you've got the format

when I get home I'll set this up and see what I get.

---
i am jack's amusing sig file



[ Reply to This | # ]