Discussion:
[Help-bash] Readline when using “<<”? Is it recent?
Garreau\, Alexandre
2018-01-31 13:21:15 UTC
Permalink
Hi,

Recently I noticed that when I typed text after “<<”, I could delete
text, go back with arrow keys, or with emacs-like keystrokes, use M-u,
M-l, etc. Yet I think I can remember a time where when using “<<” you
couldn’t go back and any attempt to del would result in printing a
control sequence that would need to do Ctrl+C and redo everything again
with “<<” (also including its whole stdin text in the history)…

Was readline support added for this recently? or was it possible to
enable/disable and disabled until recently in Debian? or maybe some
other corner case that made me miss it until now?
Chet Ramey
2018-01-31 14:41:29 UTC
Permalink
Post by Garreau\, Alexandre
Hi,
Recently I noticed that when I typed text after “<<”, I could delete
text, go back with arrow keys, or with emacs-like keystrokes, use M-u,
M-l, etc. Yet I think I can remember a time where when using “<<” you
couldn’t go back and any attempt to del would result in printing a
control sequence that would need to do Ctrl+C and redo everything again
with “<<” (also including its whole stdin text in the history)>
Was readline support added for this recently? or was it possible to
enable/disable and disabled until recently in Debian? or maybe some
other corner case that made me miss it until now?
It's been this way for a very long time. The idea is that the here-document
lines come from whatever input source is current. If that's an interactive
shell, with readline enabled, they come from readline.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU ***@case.edu http://tiswww.cwru.edu/~chet/
Loading...