I\'m trying to use whiptail as it\'s a lightweight alternative to dialog and seems to be installed by default in most systems (i.e., people don\'t have to go around and inst
This is probably because whiptail uses stdin and stdout to print the input box, so you cannot redirect stderr directly to stdout, but you need to swap them, e.g:
foobar=$(whiptail --inputbox "Enter some text" 10 30 3>&1 1>&2 2>&3)