#!/bin/sh
# This shell script runs m4 Mathomatic with readline capability.
# Uses rlwrap program, if available, which is a readline wrapper.
# The rlwrap program may be obtained at
# http://utopia.knoware.nl/~hlub/uck/rlwrap/
#
# Usage: rmath [ input_files ]

if rlwrap -v
then
	rlwrap -H ~/.mathomatic_history matho "$@"
else
	matho "$@"
fi
