Post #3265032
2022-11-18 19:54 UTC
Everyone on mastodon loves #linux, right? Throw me a bone here.
I have Python 3.10 installed in a bioinformatics #Docker image. I want to call Python with just "python" (not "python3.10") when running the container. I can't just add an alias to .bashrc since it's running non-interactively.
Adding *echo -e '#!/bin/bash\npython3.10 "$@" ' > /usr/bin/python* + chmod to the Dockerfile kind of works, but it passes -e to Python so a warning gets thrown. Is there an alternative?
#techsupport #bash
Replies (0)
No replies.