j65nko:
Yes, this works when echoing, but not with cdialog:
Code:
[~]% cat test.sh
#!/bin/sh
var="\"I am Label\" \"I am Text\""
cdialog --menu 'Hello World' 10 40 9 ${var}
echo ${var}
[~]% sh test.sh
┌──────────────────────────────────────┐
│ Hello World │
│ ┌──────────────────────────────────┐ │
│ │ "I am │ │
│ │ Label" "I │ │
│ │ am Text" │ │
│ └──────────────────────────────────┘ │
├──────────────────────────────────────┤
│ < OK > <Cancel> │
└──────────────────────────────────────┘
"I am Label" "I am Text"
cdialog weirdness or cdialog weirdness? I suspect sh weirdness ...
@graudeejs Other tools aren't available in this environment and are not an solution in this case. Trust me, if it would be, I would use them.