On Tue, Dec 22, 2020 at 2:58 PM David Mertz <mertz@gnosis.cx> wrote:
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?

In fact:

% find ~/miniconda3/envs -name 'clear' | xargs wc -c
 14344 /home/dmertz/miniconda3/envs/cleaning3.8/bin/clear
 14344 /home/dmertz/miniconda3/envs/INE/bin/clear
 14344 /home/dmertz/miniconda3/envs/Pearson-ML/bin/clear
 14344 /home/dmertz/miniconda3/envs/cleaning3.9/bin/clear
  8012 /home/dmertz/miniconda3/envs/py3.4/bin/clear
 14288 /home/dmertz/miniconda3/envs/cleaning/bin/clear
 14296 /home/dmertz/miniconda3/envs/pypy/bin/clear
 14344 /home/dmertz/miniconda3/envs/py3.9/bin/clear
 14296 /home/dmertz/miniconda3/envs/py3.8/bin/clear
  8012 /home/dmertz/miniconda3/envs/py3.5/bin/clear
 14296 /home/dmertz/miniconda3/envs/play/bin/clear
144920 total

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? 

-CHB



--
Christopher Barker, PhD

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython