On 2/7/18 5:09 PM, Nick Patavalis wrote:
> On Wed, Feb 7, 2018 at 10:56 PM, Chet Ramey <chet.ra...@case.edu> wrote:
>> On 2/6/18 3:52 PM, Nick Patavalis wrote:
>>> In any case, splitting it like:
>>> foo | --bar | =" | baz" aa bb
>>> (the last part a single word) does not look reasonable to me (even if
>>> it may be convenient in some occasions I cannot think of). It looks
>>> like a mix-up between the roles of " as a quoting character and as a
>>> word break character.
>> That may, in fact, be unreasonable. I'll take a look.
>> (It is not what I thought you were talking about as a problem: it seemed
>> to me that the `="' part was where you were objecting.)
> My worst problem is not the way '="' is split, but instead, how the rest
> of the line is not (baz" aa bb).
As it turns out, the problem is the way `="' is split. If you want to
treat quoted strings the way readline does, you can't use `'' or `"' as
a word delimiter when splitting the line, regardless of whether or not
they're in rl_completer_word_break_chars ($COMP_WORDBREAKS).
I'll have a fix in the next devel branch push.
``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/