Hello coreutils maintainers,
I noticed a potentially dangerous difference in how rm
handles the /
and /*
patterns.
Currently:
This prevents accidental deletion of the root directory.
However:
This command will proceed to remove the contents of /
, effectively destroying the system, without any warning.
While this is technically correct according to shell expansion rules, it may be surprising for some users. People might assume /*
is just as protected as /
, but the safeguard doesn’t apply.
P.S.: I removed root(