
Bnonn wrote:
root(a)saffron:/ # rm "-rf"
Give it a go. Find out... I dare you. Well actually it wont work because you've not specified a dir/file to delete. It just returns without doing any work. Even though you quoted the -rf it is interpreted by rm as an option not a filename.
Stink. I wasn't game enough to give it a go. What's the point of demarcating things if the command doesn't recognize the demarcation though...?
"" is used to seperate arguments, not to prevent them from being interpreted. Applications get given a list of arguments eg: ./foo bar baz narf gets given ["./foo","bar","baz","narf"] ./foo "bar baz" narf gets given ["./foo","bar baz","narf"] ./foo "/et*" foo bar gets given ["./foo","et*","foo","bar"] ./foo /et* foo bar gets given ["./foo","/etc","foo","bar"]