dialog options array

view story

http://ubuntuforums.org – Hi everyone, I have a bash script that launches a dialog interface. I want to read values from a .csv file to build the options selection but it is just not working right. Maybe someone can point out what Im doing wrong. Code:                         #!/bin/bash ar=()         while read FName NName PN Email Comments         do         ar+=($FName)         done < contacts.csv dialog  --menu "Latest news " 20 50 30 &quot (Hardware)