Comment by wpollock
7 days ago
An interesting approach, Good luck with it! A nit to pick: find is not a bash command. You can run it for example from a Windows DOS command line as:
wsl find ...
You can run all Linux commands this way. Also, pretty sure that find's "-o" is the Boolean "or", not "otherwise". (Yet another example of why learning from LLMs is dangerous, I suppose).
otherwise is actually an accurate description of what -o actually means. It means do the thing on the left if it works, otherwise do the thing on the right. That is, if the clause on the left succeeds then the clause on the right will be ignored.
A naive interpretation of or in the light of Boolean algebra would be: do both and return true if either succeeds.
Haha, thanks for the further education!