/usr/bin/rmath is in mathomatic 15.7.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/bin/sh
# This shell script runs m4 Mathomatic (matho) with readline capability.
# Uses rlwrap program, if available, which is a readline front end.
# The rlwrap program may be obtained at
# http://utopia.knoware.nl/~hlub/uck/rlwrap/
#
# Usage: rmath [ input_files ]
MATHOPATH="${0%/rmath}/matho"
if [ ! -x "$MATHOPATH" ]
then
MATHOPATH=matho
fi
if rlwrap -v
then
rlwrap -H ~/.mathomatic_history "$MATHOPATH" "$@"
else
echo readline support not loaded because rlwrap utility was not found.
"$MATHOPATH" "$@"
fi
|