by porker · 6y ago · 0 comments
Why, on some machines (all varying distros of Ubuntu) does
find -name *.xml
return nothing and I have to use find -name '*.xml'
whilst on other machines the first command returns results? The shell is always bash, it's a stock install - so why the variation?I get that it should always be quoted, but not why it sometimes works when unquoted and other times doesn't.
“If set, Bash allows filename patterns which match no files to expand to a null string, rather than themselves.” [1]
[1] https://www.gnu.org/software/bash/manual/html_node/The-Shopt...
Difference between dash and bash?
Shell options? `man shopt` and grep for glob