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
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
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