1 |
On Tue, 25 Oct 2005 08:46:13 +1000 |
2 |
Chris Smart <taskara@××××××××××××.net> wrote: |
3 |
|
4 |
> Wolf Giesen wrote: |
5 |
> |
6 |
> > dialog --menu "MENU" 20 50 16 "$menu" |
7 |
> > |
8 |
> >should work. Does here :) |
9 |
> > |
10 |
> >Mind the "$menu". |
11 |
> > |
12 |
> > |
13 |
> Thanks for your reply Wolf, |
14 |
> |
15 |
> The script: |
16 |
> #!/bin/bash |
17 |
> menu="1 first one 2 second one" |
18 |
> dialog --menu "MENU" 20 50 16 "$menu" |
19 |
> |
20 |
> Gives me: |
21 |
> Error: Expected at least 6 tokens for --menu, have 5. |
22 |
> |
23 |
> Normally I would do something like: |
24 |
> menu="1 \"first one\" 2 \"second one\"" |
25 |
> |
26 |
> but this is no go with dialog and bash, it adds whatever I put as part of the text. |
27 |
> |
28 |
> Would you mind sending through a working sample? Perhaps I'm doing something wrong! |
29 |
> |
30 |
> Cheers, |
31 |
> -c |
32 |
> |
33 |
> -- |
34 |
> gentoo-server@g.o mailing list |
35 |
> |
36 |
|
37 |
And you have added a default choice if nothing is selected? |
38 |
|
39 |
-- |
40 |
Chris |
41 |
|
42 |
"A world without rules and controls, without borders or boundaries. A world where anything is possible." |
43 |
- Neo from 'The Matrix' (another satisfied Linux user) |
44 |
-- |
45 |
gentoo-server@g.o mailing list |