/usr/share/sagemath/bin/sage-omega is in sagemath-common 8.1-7ubuntu1.
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 22 23 24 | #!/usr/bin/env bash
# We reuse the gdb pythonstartup script.
PYTHONSTARTUP=$SAGE_SCRIPTS_DIR/sage-ipython
export PYTHONSTARTUP
echo $PYTHONSTARTUP
if [ ! -d "$DOT_SAGE/valgrind" ]; then
mkdir "$DOT_SAGE/valgrind"
fi
LOG="$DOT_SAGE"/valgrind/sage-omega.%p
echo "Log file is $LOG"
OMEGA_FLAGS="--log-file=$LOG "; export OMEGA_FLAGS
if [ "$SAGE_OMEGA_FLAGS" ]; then
echo "Overwriting omega flags with:"
echo $SAGE_OMEGA_FLAGS
OMEGA_FLAGS=$SAGE_OMEGA_FLAGS; export OMEGA_FLAGS
else
echo "Using default flags:"
echo $OMEGA_FLAGS
fi
valgrind --tool=exp-omega $OMEGA_FLAGS python -i
|