Won't this do what you want?  It obviously works on "old" bash.

  echo -n "prompt:"; writevt -t `tty` -T "default"; read a;

For example:

testuser@bartlett:~$ echo -n "prompt:"; writevt -t `tty` -T "default";\ > read a; declare -p a BASH_VERSION
prompt:default
declare -- a="default"
declare -- BASH_VERSION="3.1.17(1)-release"
testuser@bartlett:~$
testuser@bartlett:~$
testuser@bartlett:~$ echo -n "prompt:"; writevt -t `tty` -T "default";\ > read a; declare -p a BASH_VERSION
prompt:something else
declare -- a="something else"
declare -- BASH_VERSION="3.1.17(1)-release"
testuser@bartlett:~$

Sorry to take so long to respond; we've had a large team working on this question full-time to develop this "solution". :-)


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e925184.7010...@internode.on.net

Reply via email to