Greetings,
I'm trying to write a dialog based script for my server and am having an
issue with the menu item.
I would like to have the menu item show as TWO words. Does anyone know
if this is possible?
I can get it to display just fine if item is only one word, ie
#!/bin/bash
menu="1 first-one 2 second-one"
dialog --menu "MENU" 20 50 16 $menu
But I want to be able to display it as:
#!/bin/bash
menu="1 first one 2 second one"
dialog --menu "MENU" 20 50 16 $menu
Unfortunately this processes the second word in the item as the next tag.
I've tried just about every escape character I can think of to group the
two words as one, but to no avail.
Works just fine if I hardcode it with the following:
#!/bin/bash
dialog --menu "MENU" 20 50 16 1 "first one" 2 "second one"
..but I need to generate the menu list elsewhere in the script ;)
Any ideas?
Cheers!
Chris
--
[email protected] mailing list