rclone isn’t liking it, seemingly because all the --options are being passed as a single string. How to pass them - given that their number can vary - as a single string? Should I use exec? I don’t know the syntax for that.
having generated rclone_cmd_options from an array. Stranger yet, perhaps: when (and only when) both (i) I generate rclone_cmd_options from an array, (ii) that array is a simple array, rather than one generated by combining two arrays, rclone works. (I combine two arrays because I’ve one set of constant options - options I use for every job - and another set of variable options. I use one array for each.)
EDIT: It might help to add the following. The inset code above does work when I cut out the line containing rclone_cmd_options. The options, when generated in any of the methods I’ve used, looks like this:
OK, I’ve got things working - using these methods: use arrays for the – options, but unpack the arrays before passing to rclone; call rclone without any de-globbing. What was stopping my script from working was a typo messing up the specification of the ‘remote’ at issue. Thanks for your help, Craig.