Re: confusing behaviour of the * wildcard when handling "dot" files and dirs.



Robert Heller <heller@xxxxxxxxxxxx> wrote in
news:BJadnd3nBf78IhLVnZ2dnUVZ_uqdnZ2d@xxxxxxxxxxxxxxx:


If you do just .* or .?* you will capture in the first instance both
. and .. as well and if you do .?* you will capture .. This is pretty
dangerous if you are doing
rpm -r .*
for example.

Remember to always do
.??* as the wildcard for . files.

Thanks for those tips guys! The damage wasn't too bad this time around but
it'll teach me to be more cautious as root the next time!
--
Rahul
.