Why does this code not work in Bash?
whiptail --infobox "My Text" 0 0
The manual states:
whiptail --infobox text height width
So what is wrong?
Due to a bug, the --infobox
option in whiptail doesn't work in an xterm
(ie. gnome-terminal). It does work on a regular console, however.
This seems to be a long-standing bug, which has been brushed off as non-reproducible when it was reported.
More recently it has again been reported in Launchpad.
If you need a working --infobox
under xterm
, you can use dialog
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With