Hello Frank,
That is nice! I added back the logic to suppress output at user will.
BUT the funny thing with this is it does work in bash but not in zsh. :/
e.g.:
~ % which cp
/bin/cp
~ % check4progs foo cp
foo: binary not found
cp: binary not found
This is with unmodfied debian zsh. I guess some "setopt" is missing here?
I attach the tested "check4progs.PATHloop" for ease of further testing. |