Code:
ret=$?.
RESULT=$(cat tmp.file)
no really. This is kind of surprising that one has to use hte disk as default, for linux. Well as default, as you say one can find tricks.
But the one that coded this ... well pitty that we cannot change this, it si too late. once it is coded under linux, one cannot change the program otherwise no applications would work anymore. just e.g. debian insatller is based on dialog
I found this:
Quote:
# POSIX
foo=$(dialog --inputbox "text goes here" 8 40 2>&1 >/dev/tty)
echo "The user typed '$foo'"
|
and if I do this it is not working acutally.. pff not easy:
Quote:
dialog --title " qeustions" --yesno " Ready y/n" 10 30 2>tmp.file
RESULT=$(cat tmp.file)
echo $RESULT
|