[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: spaces
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: spaces |
Date: |
Wed, 26 Jan 2022 11:00:51 +0100 |
args=( -a1 --arg "2 3 4" )
app "${args[@]}"
1 element 1 arg
no flat text args, for this u need eval or suches
On Wed, Jan 26, 2022, 10:56 Pascal <patatetom@gmail.com> wrote:
> hi,
>
> I use yad to provide a graphical user interface to some command line
> programs.
> yad can require a lot of options so, for more visibility, I define these
> options in variables like this :
>
> yad_general_options="
> --title=title
> --sticky
> --center
> --icon=icon
> "
> yad_progress_options="
> --progress
> --pulsate
> "
> yad_success_options="
> --image=success
> --button=Ok
> "
>
> and I call yad like this :
>
> yad $yad_general_options $yad_progress_options --text="the nice text"
> yad $yad_general_options $yad_success_options --text="the operation was a
> success"
>
> everything works fine as long as no option incorporates a space.
> what if I want to put "my nice title" in the --title option ?
> I tried a lot of combinations based on \ and $ but nothing works :-(
>
> regards, lacsaP.
>
- spaces, Pascal, 2022/01/26
- Re: spaces,
Alex fxmbsw7 Ratchev <=
- Re: spaces, Andreas Kusalananda Kähäri, 2022/01/26