3 ms·
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 f
by twic 5y ago
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-Builtin https://www.gnu.org/software/bash/manual/bash.html#The-Shopt...