I have this test code in my bash file:
gtest() {
echo 'hello'
}
bind '"\C-g\C-x": "$(gtest)\e\C-e"'
When I start typing something like vim "
, and then press C-g C-x, I get vim hello
instead of vim "hello
.
If I type vim """sometext
and then press C-g C-x, I get vim sometexthello
instead of vim """sometexthello
.
Is there a way to retain the quotes?