in reply to RE: Simple Calculator
in thread Simple Calculator

This can be done in a one-liner:
perl -ple '$_ = "> " . eval'
which you can add to your .bashrc file using:
alias calc='perl -ple '\''$_ = "> " . eval'\'''
You can exit the loop with ^D.

Remember: There's always one more bug.