You can fake it, for example, using readline :
$ foo=Hello $ read -e -i"$foo" foo Hello
When using readline with the -e flag, the -i argument is placed on the first line of input to get you started. You are not so much adding foo to foo as you are assigning foo whole new value that just starts with the old value if you are not editing the start line.
source share