I want to use a variable from the main shell in a sub shell. I did:
export mysql_root_password="test"
(
echo $mysql_root_password
) | dialog --gauge "Working hard..." 6 50
There is no output. Of course there is not since I send the output to dialog. Is there a way to output specific variables still the normal way without removing the dialog part?