#!/bin/sh tmp=$$.tmp trap 'rm -f $tmp' EXIT trap 'exit $?' HUP INT TERM # Expected output for f, c, d, and r operators cat <$tmp test 1: test 2: 3 2 1 test 3: 0 test 4: 5 5 test 5: 3 3 2 1 test 6: 2 1 test 7: 2 3 1 test 8: 10 test 9: 1 test 10: 15 test 11: test 12: 1 1 1 1 test 13: -5 -5 test 14: 1.5 1.5 test 15: 2 3 1 EOF $EXEC ../dc <