News for hackers. Stuff that matters.
Re:A common mistake involving wildcards and the find command... by twic on Friday December 10, 2021 @12:06PM (#29512306)
bash has a couple of shell options [1] which can improve handling of unmatched globs:

> failglob

> If set, patterns which fail to match filenames during filename expansion result in an expansion error.

> nullglob

> If set, Bash allows filename patterns which match no files to expand to a null string, rather than themselves.

[1] https://www.gnu.org/software/bash/manual/bash.html#The-Shopt...

There are no comments on this comment yet.