viant / toolbox

Toolbox - go utility library
Apache License 2.0
197 stars 29 forks source link

Weird "2004l" when running on Linux #50

Closed dchoi-viant closed 1 year ago

dchoi-viant commented 1 year ago

Some Linux distributions with bash v4.4+ or readline v7 will have something called "bracketed-paste" enabled. This may cause issues when attempting but may not be limited to using ssh.multiCommandSession.system. This is described here: atthttps://cirw.in/blog/bracketed-paste And can be alleviated by adding a $HOME/.inputrc with contents set enable-bracketed-paste off; or as a single executable script:

echo "set enable-bracketed-paste off" >> $HOME/.inputrc