gtkdialog again, the other way around this time – how to use bash variables in dialog?

Nils Kassube kassube at gmx.net
Sun Apr 21 06:27:37 UTC 2013


Johnny Rosenberg wrote:
> Here is some nonsense code that I'm trying to make work:
[...]
> export MainDialog='
[...]
>                 <input file>$InstrumentsList</input>
[...]
>                 <input file>$MusiciansList</input>
[...]
>     </vbox>'
> gtkdialog --program MainDialog

> The problem is that $InstrumentsList and $MusiciansList doesn't
> expand, and whatever I tried I failed.

You used single quotes [1] instead of double quotes [2] for the
MainDialog declaration.


Nils

[1] <http://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html>
[2] <http://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html>





More information about the ubuntu-users mailing list