Quote:
listOfParams wasn't an array either; your arguments weren't ever three things.
I never said the input starts out as an array or an array of 3 things. I said it is a list which I could place into a variable. And the list contains quoted strings containing white space.
I have no control over the generation of the input - but of course I can massage it within scriptA before sending it on to scriptB. I merely tried to emulate the input with an echo of that variable. Your IFS block of code is useful. It demonstrated that my "emulated" input was incorrect in regards to what I was receiving during my earlier observations.
With your IFS block I saw the following printout:
Obviously by placing that input into an array - it will contain four elements. (I tried it anyways.) But to get the desired interpretation of this list as 3 elements, I still believe "eval" is necessary.
So thank you for your input. It was very helpful.