Though the check isn’t very sophisticated, if memory serves. It more or less checks whether / is passed to rm -r.
If you did something like rm -r $VAR/*, but didn’t check to make sure that $VAR was set and not empty, it could still fire, since rm wouldn’t see that root got passed, only a bunch of directories in root.
Though the check isn’t very sophisticated, if memory serves. It more or less checks whether / is passed to
rm -r.If you did something like
rm -r $VAR/*, but didn’t check to make sure that$VARwas set and not empty, it could still fire, since rm wouldn’t see that root got passed, only a bunch of directories in root.