bug-bash
[Top][All Lists]
Advanced

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

Re: compgen -W doesn't split wordlist containing single quotes


From: Chet Ramey
Subject: Re: compgen -W doesn't split wordlist containing single quotes
Date: Mon, 19 Mar 2018 09:52:23 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 3/17/18 10:49 PM, Clark Wang wrote:

>     You haven't told complete that you want the words to be quoted. If you
>     install the completion using the `-o filenames' option, you will get
>     filename-like quoting.
> 
> 
> `-o filenames' would append `/' to a word if the word is coincidentally a
> real existing dir name. How can I ask it not to append the `/'?

You can't. That's the implication from my second paragraph.

>     Readline doesn't provide a way to quote completion matches unless you
>     say they're filenames. Maybe it should, but that is the way things are.

Chet


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



reply via email to

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