Quote:
Originally Posted by MTK358
I don't understand.
|
It appears you have some non-printing characters in your script, such as the control-S.
You thought you only typed "-–exclude=/backup.tar.gz" What you actually typed, as shown by the "cat -A (show all)" command is "-^Sexclude=/backup.tar.gz$" where that "^S" is the printed representation of a control-S. Once the line parser hit that, all it sees is the double-dash, which is an invalid option, and not the double-dash-exclude.
That's an easy enough mistake to make; I know I accidentally put non-printing characters in with annoying regularity.