While annoying, this, too, is manageable, by getting in the habit of always using the "--" trick to block out interpreting variables as options. Note that this is fine in the modern GNU world, but many vendor-supplied tools don't recognize "--", which is a problem.RaTTuS wrote:having leading - in files names is a crime against humanity ... see also leading / trailing spaces
never create a file called
-rf
... ...
I've been doing a fair amount of programing in Tcl lately, and for some reason this issue arises frequently in Tcl programs. You quickly get in the habit of using "--" whenever applicable.