Somewhat supporting my concern, I just was surprised to find this:
% ll `which clear`
-rwxrwxr-x 2 dmertz 14344 Nov 14 17:07 /home/dmertz/miniconda3/bin/clear
% ll /usr/bin/clear
-rwxr-xr-x 1 root 14656 Feb 29 2020 /usr/bin/clear
that is, indeed surprising. But also maybe an argument for using it -- it can be supplied in by conda (and others) , and thus we don't need to count on the system having it.
Though, yeah shelling out to an arbitrary command on the system is a bit scary -- does the Python stdlib currently do that anywhere?
% find ~/miniconda3/envs -name 'clear' | xargs wc -c
Apparently I have at least 5 different `clear` executables installed on my system... and I only learned that in the last 2 minutes.
interesting .. any idea what conda package is providing it?
Christopher Barker, PhD
Python Language Consulting
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython