help-bash
[Top][All Lists]
Advanced

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

spaces


From: Pascal
Subject: spaces
Date: Wed, 26 Jan 2022 10:55:37 +0100

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]