I am writing a installation script and would like to display the status of the script as it progresses.
example:
var1=\"pending\" var2=\"pending\" va
This does not completely solve your problem but might help; to print the status after the execution of each command, modify PS1 like this:
PS1='$PS1 $( print_status )'