I am using a bash script dialog. My script makes the difference between the files in two tar.gz. Each file is added to the array, and each delete file is placed in a different array.
All files are added to my two arrays, and when I want to echo them, it works
echo ${tabAjout[@]} echo ${tabSuppr[@]}
Output:
bonjour.txt.gpg test2.txt.gpg test.txt.gpg hello.txt.gpg
Now I want to add this to msgbox.
function affiche_message(){
Call Function:
affiche_message "Title" "Delete : ${tabSuppr[@]} \n\n Add : ${tabAjout[@]}"
When I run my script, msgbox contains only the first values of the array. If I change $ {tabAjout [@]} to $ {# tabAjout [@]}, the dialogs will display an echo that the array contains 3 values.
source share