Wolf Giesen wrote:
Your problem is the blanks here.
I'm sure there's a "good" way to un-fsck bash here, but I usually don't
care because this part of bash is so ugly and complex (read the doc and
note how many "if"s there are ... special cases and more special cases).
So I'd simply do it like this and be done for:
#!/bin/bash
menu="1 first\ one 2 second\ one"
echo "MENU" 20 50 16 $menu | xargs dialog --menu
Note the backslash-blank combination.
Ahhhhh thank you so much :) problem solved I think!
My menu was looking pretty ugly with all those underscores ;)
The only other way I could think to do it was to export the menu items
into a tempary bash script and then grab the result.. and that was yucky.
Cheers!!
Chris
--
[email protected] mailing list