Re: bash script mailing list?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 09, 2007 at 03:21:09PM -0500, katsumi liquer wrote:
> Hi Ray,
> 
> Both those groups sound perfect! I will throw it out here just in case
> anyone has an idea. When you are scripting dialog using bash, what are
> the exact requirements for the 'tag' and 'item' element options when
> using --menu ?
> 
> For example, take this command:
> 
> dialog --title "This is a test menu box" \
>        --menu "Here is a list of valid choices" 20 61 4 [FOOD Foods]
> [BEER Beers] [GEAR Gear] [ANIMALS Animals]
> 
> This will work, but I can't seem to find any way to allow 'item' field
> (Beers, Gear, etc) have spaces in it. Is it possible to have spaces
> for this field? What are the format requirements for this field?
> 
> Probably a bad question, but it is driving me crazy :)

Either of the following works for me:

  dialog --title "This is a test menu box" \
    --menu "Here is a list of valid choices" \
    20 61 4 "[FOOD Foods]" "[BEER Beers]" "[GEAR Gear]" "[ANIMALS Animals]"

  dialog --title "This is a test menu box" \
    --menu "Here is a list of valid choices" \
    20 61 4 [FOOD\ Foods] [BEER\ Beers] [GEAR\ Gear] [ANIMALS\ Animals]

Ray

> Thank you,
> 
> katsu
> 
> On 2/9/07, Ray Van Dolson <rvandolson@xxxxxxxx> wrote:
> >On Fri, Feb 09, 2007 at 03:03:36PM -0500, katsumi liquer wrote:
> >> Hello,
> >>
> >> Does anyone know of an appropriate mailing list for discussing bash
> >> scripting related questions? Or questions related to the 'dialog'
> >> program? Or, for some freaky reason, does anyone on this list want to
> >> take a stab at a bash/dialog related question? :)
> >
> >Newsgroups gnu.bash and comp.unix.shell may be of help to you...
> >
> >Or throw it out here, many of us script in bash quite often.  Don't think 
> >it'd
> >be too off-topic?
> >
> >Ray

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux