|
|
|
|
|
by unwind
4172 days ago
|
|
That's normal, but why the trailing slash?! That's just pointless, and almost looks like an explicit deathtrap. Without the slash, an empty variable would result in a command line of "rf -rf" which would simply fail due to the missing argument. There is absolutely no need for having a trailing slash, it's not as if "rf -rf foo" and "rm -rf foo/" can ever mean two different things, there can be only one "foo" in the file system after all. Very interesting way of introducing an epic fail with a single character, that really looks harmless. |
|
That's true, but the original code was akin "rm -rf foo/*" and that's different, since it removes the content of the directory while preserving it.