Please find my script and the output
#!/bin/bash
verify=("Tom Dick Harry" "Ricky" "Deep Rising")
function verifyServices()
{
param=("${!1}")
for i in ${param[@]}
do
echo $i
done
}
verifyServices verify[@]
Output :-
Tom
Dick
Harry
Ricky
Deep
Rising
Expected output :-
Tom Dick Harry
Ricky
Deep Rising
Why? Is my array declaration wrong?