[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] How does readline know where words end (psql and yank
Re: [Bug-readline] How does readline know where words end (psql and yank-last-arg use case)?
Wed, 6 Jul 2011 07:40:40 -0400
> I'm just wondering how does readline know where any given word ends
> and another one starts?
In this case, since you're yanking from the history, it uses the history
library's set of word delimiters. In general, it uses the notion of
characters that break words.
The history library's set of word delimiters is a subset of the shell's:
` \t\n;&()|<>', with quoting honored.
There aren't any hooks to modify this from outside the history library.
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/