Wolf Giesen wrote:
dialog --menu "MENU" 20 50 16 "$menu"
should work. Does here :)
Mind the "$menu".
Thanks for your reply Wolf,
The script:
#!/bin/bash
menu="1 first one 2 second one"
dialog --menu "MENU" 20 50 16 "$menu"
Gives me:
Error: Expected at least 6 tokens for --menu, have 5.
Normally I would do something like:
menu="1 \"first one\" 2 \"second one\""
but this is no go with dialog and bash, it adds whatever I put as part of the
text.
Would you mind sending through a working sample? Perhaps I'm doing something
wrong!
Cheers,
-c
--
[email protected] mailing list