i've found some inconsistency with bash commands and I wanted some clarification.
A comment mentioned here said Also, remember to quote the file pattern ".txt" or the shell will expand it.. But then why does the command
find . -name *.txt
Not obtain an error, it should be expanding the output using a wild card?
Also I found a nice page explaining the Differences in single quotes and double quotes,. but then why does using single quotes within a regex not break it? For example
find . -regex '.*x.txt'
Why does this work, and not look for the file literally called .*.txt
Cheersr