I have the following code:
commit_hashes_raw=(`git cherry origin/Server_Dev`)
echo ${#commit_hashes_raw[@]}
echo ${commit_hashes_raw[@]}
that is producing the following output:
2
+ 6f0de9d07538db5d6428acd083c4a4527751596b
The first line is supposed to be the size of the array and the second is the contents. The obvious problem here is the discrepancy between the two values though. I've run this on another data set and a 50 element array was being reporting by the middle line as 100 elements long.
Am I using the wrong method for finding the size or is there something funky with my array?