On 2/7/18 5:11 PM, Nick Patavalis wrote:

> On the other hand, readline seems not to be able to complete something
> like:
> 
>     ls /tm"p/foo/a b"
> 
> (and I don't understand why), though this is true, regardless of
> whether " is in COMP_WORDBREAKS or not. I *both* cases, the command line
> is split (correctly) like:
> 
>    ls | /tm"p/foo/a b"
> 
> so, probably, this is irrelevant with the discussion at hand.

Because, as I said in my original reply, readline understands how to
complete inside quoted strings. If point is after the `b', for instance,
and you hit TAB, readline scans back to the open quote and passes
"p/foo/a b" to the completion function.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to