It's a reasonable point, undermined by fact that there is a much easier solution. That solution is:
When using short option which take arguments (like -f name), don't combine them with others, it is very easy to get the order wrong.
So author: Doing "tar -cvf NAME" is a bad idea. Don't do this. Change your habits to either do "tar cvf NAME", or "tar -cv -f NAME" and chance of error will decrease by a lot. The second one is easier to remember, too: there is no magic "cvf", tar simply takes "-f" argument, just like "make" or "sed" or countless other tools.
Combining single-letter arguments with inputs is just one of those sharp edges you have to learn and avoid. Just like not running stuff as root, or putting "set -e" on your shell scripts, or not adding . to $PATH, or not keeping 1 million files in a single directory. It's an unfortunate reality of having system backwards-compatible scripts made 50 years ago.
It's a reasonable point, undermined by fact that there is a much easier solution. That solution is:
When using short option which take arguments (like -f name), don't combine them with others, it is very easy to get the order wrong.
So author: Doing "tar -cvf NAME" is a bad idea. Don't do this. Change your habits to either do "tar cvf NAME", or "tar -cv -f NAME" and chance of error will decrease by a lot. The second one is easier to remember, too: there is no magic "cvf", tar simply takes "-f" argument, just like "make" or "sed" or countless other tools.
Combining single-letter arguments with inputs is just one of those sharp edges you have to learn and avoid. Just like not running stuff as root, or putting "set -e" on your shell scripts, or not adding . to $PATH, or not keeping 1 million files in a single directory. It's an unfortunate reality of having system backwards-compatible scripts made 50 years ago.