I've just installed sage from the git repository by following the steps
at
https://github.com/sagemath/sage . That is basically
make configure
./configure --prefix=... --disable-editable ...
make
That succeeds and I can use it, but I wonder why I cannot start
sage -python
For that it tells me:
===========================
usage: sage [-h] [-v] [-q] [--simple-prompt] [-V] [-n
[{jupyter,jupyterlab}]] [-c [COMMAND]] [file ...]
sage: error: unrecognized arguments: -python
===========================
Did I something wrong with the installation?
How can I get back "sage -python".
In fact I need it for a shell script with (after doing some environment
changes) calling
cat $1 \
| sage -python -c "import sys;\
from sage.repl.preparse import preparse_file;\
print(preparse_file(sys.stdin.read()));" \
| ( echo 'from sage.all import *'; cat - ) \
| sage -python \
in order to pass a command to sage and catching the output.
Thanks in advance.
Ralf