On Fri, Apr 01, 2011 at 01:45:17PM -0600, Andrew McNabb wrote: >All else aside, the behavior of "rm -rf .*" is an entirely sufficient >reason to switch from bash to zsh. In zsh, it deletes all of the normal >files and directories whose names begin with a period. In bash, it >recursively deletes the current directory and the parent directory. Try >it. :)
I tried it: $ mkdir /tmp/foo; cd /tmp/foo; touch .a; touch b; rm -rf .*; ls -al rm: cannot remove directory: `.' rm: cannot remove directory: `..' total 8 drwxrwxr-x 2 pmcnabb pmcnabb 4096 Apr 3 09:59 . drwxrwxrwt. 19 root root 4096 Apr 3 09:59 .. -rw-rw-r-- 1 pmcnabb pmcnabb 0 Apr 3 09:59 b $ echo $SHELL /bin/bash -Peter -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list
