[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sort does not use tab as delimiter

From: Bob Proulx
Subject: Re: sort does not use tab as delimiter
Date: Mon, 11 Dec 2006 23:25:10 -0700
User-agent: Mutt/1.5.9i

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]