I am trying to understand the find
command (running on Ubuntu) and encountered a strange situation. I searched for a pattern that I knew to match some file:
$ find /data2/SharonFolder/conda-envs/envs/sparse-conv/lib/python3.8/site-packages/ -name sparseconvnet.egg-link
This worked, and returned /data2/SharonFolder/conda-envs/envs/sparse-conv/lib/python3.8/site-packages/sparseconvnet.egg-link
as I would expect. I tried with a wildcard at the end.
find /data2/SharonFolder/conda-envs/envs/sparse-conv/lib/python3.8/site-packages/ -name sparseconvne*
This also worked just fine as it returned the same filename.
However, if I run the wildcard too far from the end, it stops matching!
find /data2/SharonFolder/conda-envs/envs/sparse-conv/lib/python3.8/site-packages/ -name sparseconv*
If I move the wildcard further back (e.g. sparse*), it continues not to match.