On Tue, 25 Oct 2005 08:46:13 +1000 Chris Smart <[EMAIL PROTECTED]> wrote:
> 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 > And you have added a default choice if nothing is selected? -- Chris "A world without rules and controls, without borders or boundaries. A world where anything is possible." - Neo from 'The Matrix' (another satisfied Linux user) -- [email protected] mailing list
