Re: rm can accidentally delete dirs

2003-02-09 Thread Alfred M. Szmidt
rm *f t*should delete '-rf' and the test file, leaving the directory, however, it interperates -rf as arguments, deleteing the folder and its contents. (It also leaves the -rf file). Not a bug. Wildcards get expanded by the shell, thus what you are typing (i.e. what the shell is

Re: rm can accidentally delete dirs

2003-02-08 Thread Bob Proulx
Skiboo wrote: > Toying with rm today, and came across this situation. > You've got a file called "-n". Now, rm will interperet > 'rm -n' as an argument (this isn't the bug). So you go > 'rm -- -n', and everything is fine. Good. > However, since it tries to interperet these filenames > as argument

rm can accidentally delete dirs

2003-02-08 Thread Skiboo
Toying with rm today, and came across this situation. You've got a file called "-n". Now, rm will interperet 'rm -n' as an argument (this isn't the bug). So you go 'rm -- -n', and everything is fine. However, since it tries to interperet these filenames as arguments, some problems come up. Say you