I am always running into this problem without learning.
When searching for a file with the starting point in another directory I give the full path to the starting point and it does not work. Same happens when I am in the starting directory and give the full path to the starting point.
find /path/from/start/. -path './anaconda3/*' -prune -o -name '*R' -print
goes straight to the "pruned" directory like there was candy in it.
If I'm at the starting point, starting from
. works fine. Otherwise
find does not prune the path I'm trying to escape.
find . -path './anaconda3/*' -prune -o -name '*R' -print
Maybe a detailed answer will settle this problem, sometimes I learn but the next time I face the
find command I run into the same problem like I have never done this before. The
-path pattern chapter of the man page is trying to say something but I think it is in vogon and I do not possess a babel fish.