I though the spec on rm says it cannot delete the directory you are currently in?  <a href="http:&#x2F;&#x2F;pubs.opengroup.org&#x2F;onlinepubs&#x2F;009604499&#x2F;utilities&#x2F;rm.html" rel="nofollow">http:&#x2F;&#x2F;pubs.opengroup.org&#x2F;onlinepubs&#x2F;009604499&#x2F;utilities&#x2F;rm....</a><p>Plus, it mentions . and .. as no-nos