The following command with 2 parameters does what I need if I enter it in a terminal:
mycommand 'string that includes many spaces and double quotes' 'another string that includes many spaces and double quotes'
Now I move the above to the bash script.
C=mycommand 'string that includes many spaces and double quotes'
function f {
$C $1
}
# let's call it
f 'another string that includes many spaces and double quotes'
Obviously this is not going to produce the same result, or any useful result. But I can not come up with the correct way of preserving and/or properly escaping quotes, spaces and keeping number of actual parameters that mycommand sees as 2.
I use GNU bash version 3.2.57 on a Mac.