I cannot figure out how to insert a string into a bash terminal.
Here is what I would like to achieve:
$./insert.sh
$this was inserted by script[Cursor is here]
I would still like to be able to edit "this was inserted by script". It should not be executed without pressing enter.Like pasting into a terminal will leave the text without executing it (Assuming no newlines).