Eric Blake wrote:
> Ctrl-V is pretty much the standard default in UNIX terminals for quoting
> the next character typed, which means the sequence [ctrl-v] then [tab] is
> almost universally accepted, regardless of whether you use bash, ksh, ash,
> or even csh.  With ctrl-v, it is the terminal doing the quoting and not
> your shell.  And if you don't like ctrl-v, then play with 'stty lnext'.

A small nit.  IIRC bash through libreadline puts the terminal in raw
mode so as to be able to do editing on the line.  The tty driver in
raw mode will pass ctrl-v on as a character.  So for bash it really is
the shell that is doing the quoting.  However what you said would
certainly be true for Bourne shell or csh which use the tty driver in
canonical input mode.  Bash IIRC also reads the current tty settings
and uses their values so changing the tty settings do have the final
override as expected.

Bob



_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to