When a glob is the first character of an argument (* or ?), expansion can yield paths that start with
-. Many programs then treat those operands as flags, which changes behavior (argument injection, CWE-88).
Prefer ./ before the glob (e.g. rm ./*) or end option parsing with -- (e.g. rm -- *). echo and
printf are common exceptions because they do not parse operands as options the same way.