GNU bug report logs -
#9950
rm -r partial failure
Previous Next
Reported by: Graham Lawrence <gl00637 <at> gmail.com>
Date: Fri, 4 Nov 2011 16:20:01 UTC
Severity: normal
Tags: notabug
Done: Bob Proulx <bob <at> proulx.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
I appreciate the detailed response from Bob Proulx, but I do not think
it addressed the question I raised. I had expected "rm -rf *.swp" to
remove all the files listed by find, Mr Proulx informed me that it
would have removed none of them, but in fact what it did was remove
SOME of them.
~ $find /home -name *swp ................the original list delivered by find
/home/g/.vim/config.swp
/home/g/.vim/Notes.swp
/home/g/.vim/nzb.sh.swp
/home/g/.vim/makesess.vim.swp
/home/g/.vim/backup.sh.swp
/home/g/.vim/.vimrc.swp
/home/g/.vim/.bashrc.swp
/home/g/.vim/renamer.sh.swp
/home/g/.vim/vimcht.swp
/home/g/.vim/grepnotes.sh.swp
/home/g/Scripts/.reseq.awk.swp
/home/g/.fluxbox/.menu.swp
~ $rm -rf *.swp ...............................the doubtful rm command
~ $find /home -name *swp ..............the same find command, showing
some deleted, and some not
/home/g/.vim/Notes.swp
/home/g/.vim/backup.sh.swp
/home/g/.vim/.vimrc.swp
/home/g/Scripts/.reseq.awk.swp
/home/g/.fluxbox/.menu.swp
~ $rm -rf *swp
For example, why did it remove
/home/g/.vim/renamer.sh.swp
but ignore
/home/g/.vim/backup.sh.swp
This bug report was last modified 13 years and 200 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.