I have an rsync command that works as expected when I type it directly into a terminal. The command includes several --include='blah'
and --exclude='foo'
type arguments. However, if I save that command to a one-line file called "myfile" and I try `cat myfile` (or, equivalently $(cat myfile)
), the rsync command behaves differently.
I'm sure it is the exact same command in both cases.
Is this behavior expected/explainable?