Image 01
profile-image

robertjw

Bob Weber
The Ultimate Bashrc File

Various Gnome Stuff by inameiname 101 comments

I've been using your .bashrc file for a couple years, but the rm function that is supposed to log rm activity doesn't work for filenames with spaces in them. For example, here is a recent file I attempted to remove with the output.

rm docs/Foo\ 2015\ Dealer\ Price.pdf
/bin/rm: cannot remove ‘docs/Foo’: No such file or directory
/bin/rm: cannot remove ‘2015’: No such file or directory
/bin/rm: cannot remove ‘Dealer’: No such file or directory
/bin/rm: cannot remove ‘Price.pdf’: No such file or directory
/bin/rm: cannot remove ‘echo’: No such file or directory
/bin/rm: cannot remove ‘rm docs/Foo 2015 Dealer Price.pdf issued at Tue Aug 4 11:27:56 MDT 2015 by the user bob in the directory ’: No such file or directory

I just downloaded the latest version but didn't see any changes to rm.

I'm using Ubuntu 15.04
- Aug 04 2015