I am going crazy to understand why the following bash portion of code:
simpleTest=("this is just a test print string after my array ${testArray[i]} keep testing")
echo $simpleTest
As you can see, the part of the string that comes after ${testArray[I]} is then printed at the beginning of the line and is overriding the "This is just". Unfortunately I can't post the entire code but the rest of the code is pretty much independent. If I end my string at ${testArray[I]} everything works fine. I really don't understand why it doesn't accept other strings after the array item. There are no special characters inside the array
Any suggestion?