That works only for a single argument, not multiple:
Code:
var='This is label'
ls "${var}" # Works
var='This is label' 'This is text'
ls "${var}" # Oh noes!
What I need to have is something along the lines of:
# cdialog --menu 'Hello World' 10 40 9 'I am Label' 'I am Text' 'Another label' 'More text'
... Where the highlighted text should be ${var} ...
From the commandline this gives me:
Code:
┌──────────────────────────────────────┐
│ Hello World │
│ ┌──────────────────────────────────┐ │
│ │ I am Label I am Text │ │
│ │ Another label More text │ │
│ │ │ │
│ └──────────────────────────────────┘ │
├──────────────────────────────────────┤
│ < OK > <Cancel> │
└──────────────────────────────────────┘
If I wouldn't quote anything, then every word would be a label/text ... :-|
It sounds silly, but putting
'I am Label' 'I am Text' 'Another label' 'More text' inside of ${var} has kept both myself and a coworker busy for quite some time (With no resolution so far)...