I wanted to make a zenity list that takes the fields for one column from one list and the fields for the other column from another list
menu=("option1" "option2" "option3")
desc=("description1" "description2" "description3")
ans=`zenity --list --column=Menu "${menu[@]}" --column=Description "${desc[@]}" --height 170`
That didn't work because it first displays all values from the first list and then from the other:
Menu | Description |
---|---|
option1 | option2 |
option3 | description1 |
description2 | description3 |
So I figured I probably need to merge them in alternating order but I don't know how.