I have a dynamic menu on dialog (the items are provided from an array) but the menu is not displaying the selected option
gp_options=()
for i in `find ~ -type d -name .git`; do
gp_options+=("" "$i")
done
gp_dialog=(dialog --stdout --extra-button --help-button \
--ok-label 'Access repository' \
--extra-label 'Create repository' \
--cancel-label 'Remove repository'
--help-label 'Cancel' \
--backtitle "Welcome to Git Bash `whoami`!" \
--title ' Manage repositories ' \
--menu 'Manage repositories' \
0 0 0 \
"${gp_options[@]}")
dialog --stdout --msgbox "$manage_repositories" 0 0
dialogsupposed to write on stdout? (2) Did you try tor run with set -x so that you can see whether the parameters are correct?/home/user/.git(and how do use set -x?)gp_dialogsupposed to be an array, or the result of runningdialogin which case you need=$(...). What is in varmanage_repositories?